import math
import numpy

p = 1
q = 1
a = 1 / (p + q)
r = 0.5
# 原始数据
# <editor-fold desc="原始数据">
E1_Cl = [35, 85, 88, 94, 97, 92, 91, 370.6]
E1_Cm = [35.45454545, 88.09090909, 89, 96.81818182, 97, 97.4545, 95, 436.6272727]
E1_Cu = [36, 90, 90, 99, 97, 100, 98, 529.5]

E2_Cl = [36, 85, 95, 95, 96, 95, 92, 395.3]
E2_Cm = [41.63636364, 89.81818182, 95.90909091, 97.81818182, 96.72727273, 98.3636, 95.63636364, 504.6181818]
E2_Cu = [46, 93, 96, 100, 97, 100, 98, 647.6]

E3_Cl = [33, 84, 96, 95, 95, 99, 94, 365.2]
E3_Cm = [45, 90.36363636, 97, 97.72727273, 96.18181818, 99.6363, 95.90909091, 533.3272727]
E3_Cu = [54, 94, 98, 100, 97, 100, 98, 748.6]

E4_Cl = [36, 86, 96, 96, 96, 96, 94, 370.2]
E4_Cm = [48.81818182, 91.36363636, 97.63636364, 98, 97.63636364, 98.7272, 96.18181818, 601.6181818]
E4_Cu = [58, 95, 99, 100, 98, 100, 99, 833.3]

E5_Cl = [34, 90, 89, 95, 96, 100, 83, 404.9]
E5_Cm = [40.27272727, 91.72727273, 91.09090909, 97.72727273, 96.72727273, 100, 90.18181818, 482]
E5_Cu = [45, 93, 94, 99, 97, 100, 96, 570.8]

E6_Cl = [33, 91, 93, 95, 95, 100, 85, 380.9]
E6_Cm = [46.18181818, 92.90909091, 94.90909091, 97.36363636, 96.27272727, 100, 92.36363636, 540.3909091]
E6_Cu = [55, 95, 98, 99, 97, 100, 98, 718.1]

E7_Cl = [34, 90, 93, 95, 95, 99, 86, 370.9]
E7_Cm = [49.63636364, 93.36363636, 95.18181818, 97.54545455, 96.36363636, 99.909, 92.90909091, 575.6]
E7_Cu = [61, 95, 98, 100, 97, 100, 97, 803.6]

E8_Cl = [32, 90, 92, 96, 94, 98, 89, 373.2]
E8_Cm = [51.72727273, 93.72727273, 94.18181818, 97.72727273, 97, 99.3636, 93.63636364, 611.2909091]
E8_Cu = [64, 96, 97, 100, 98, 100, 97, 864.2]

E9_Cl = [50, 90, 91, 94, 93, 100, 48, 410.6]
E9_Cm = [53, 93.54545455, 91.54545455, 97.09090909, 94.63636364, 100, 64.54545455, 480.5181818]
E9_Cu = [56, 94, 93, 99, 96, 100, 85, 572.2]

E10_Cl = [57, 92, 92, 95, 94, 100, 55, 392.5]
E10_Cm = [58.45454545, 94.09090909, 92.09090909, 97.45454545, 95.09090909, 100, 66.27272727, 524.6727273]
E10_Cu = [60, 95, 93, 99, 96, 100, 84, 673.4]

E11_Cl = [56, 92, 92, 95, 95, 99, 59, 350.1]
E11_Cm = [60.36363636, 94.45454545, 93.54545455, 97.45454545, 97.18181818, 99.8181, 69.72727273, 566.5818182]
E11_Cu = [63, 96, 96, 100, 98, 100, 86, 802.7]

E12_Cl = [54, 91, 89, 93, 97, 86, 65, 320.7]
E12_Cm = [60.72727273, 94.27272727, 92.72727273, 97.63636364, 97.81818182, 93.909, 76.63636364, 591.4090909]
E12_Cu = [64, 96, 97, 100, 98, 99, 88, 823.7]
# </editor-fold>
# <editor-fold desc="极值筛选">
C1l = max(E1_Cl[0], E2_Cl[0], E3_Cl[0], E4_Cl[0], E5_Cl[0], E6_Cl[0], E7_Cl[0], E8_Cl[0], E9_Cl[0], E10_Cl[0],
          E11_Cl[0], E12_Cl[0])
C1m = max(E1_Cm[0], E2_Cm[0], E3_Cm[0], E4_Cm[0], E5_Cm[0], E6_Cm[0], E7_Cm[0], E8_Cm[0], E9_Cm[0], E10_Cm[0],
          E11_Cm[0], E12_Cm[0])
C1u = max(E1_Cu[0], E2_Cu[0], E3_Cu[0], E4_Cu[0], E5_Cu[0], E6_Cu[0], E7_Cu[0], E8_Cu[0], E9_Cu[0], E10_Cu[0],
          E11_Cu[0], E12_Cu[0])

C2l = max(E1_Cl[1], E2_Cl[1], E3_Cl[1], E4_Cl[1], E5_Cl[1], E6_Cl[1], E7_Cl[1], E8_Cl[1], E9_Cl[1], E10_Cl[1],
          E11_Cl[1], E12_Cl[1])
C2m = max(E1_Cm[1], E2_Cm[1], E3_Cm[1], E4_Cm[1], E5_Cm[1], E6_Cm[1], E7_Cm[1], E8_Cm[1], E9_Cm[1], E10_Cm[1],
          E11_Cm[1], E12_Cm[1])
C2u = max(E1_Cu[1], E2_Cu[1], E3_Cu[1], E4_Cu[1], E5_Cu[1], E6_Cu[1], E7_Cu[1], E8_Cu[1], E9_Cu[1], E10_Cu[1],
          E11_Cu[1], E12_Cu[1])

C3l = max(E1_Cl[2], E2_Cl[2], E3_Cl[2], E4_Cl[2], E5_Cl[2], E6_Cl[2], E7_Cl[2], E8_Cl[2], E9_Cl[2], E10_Cl[2],
          E11_Cl[2], E12_Cl[2])
C3m = max(E1_Cm[2], E2_Cm[2], E3_Cm[2], E4_Cm[2], E5_Cm[2], E6_Cm[2], E7_Cm[2], E8_Cm[2], E9_Cm[2], E10_Cm[2],
          E11_Cm[2], E12_Cm[2])
C3u = max(E1_Cu[2], E2_Cu[2], E3_Cu[2], E4_Cu[2], E5_Cu[2], E6_Cu[2], E7_Cu[2], E8_Cu[2], E9_Cu[2], E10_Cu[2],
          E11_Cu[2], E12_Cu[2])

C4l = max(E1_Cl[3], E2_Cl[3], E3_Cl[3], E4_Cl[3], E5_Cl[3], E6_Cl[3], E7_Cl[3], E8_Cl[3], E9_Cl[3], E10_Cl[3],
          E11_Cl[3], E12_Cl[3])
C4m = max(E1_Cm[3], E2_Cm[3], E3_Cm[3], E4_Cm[3], E5_Cm[3], E6_Cm[3], E7_Cm[3], E8_Cm[3], E9_Cm[3], E10_Cm[3],
          E11_Cm[3], E12_Cm[3])
C4u = max(E1_Cu[3], E2_Cu[3], E3_Cu[3], E4_Cu[3], E5_Cu[3], E6_Cu[3], E7_Cu[3], E8_Cu[3], E9_Cu[3], E10_Cu[3],
          E11_Cu[3], E12_Cu[3])

C5l = max(E1_Cl[4], E2_Cl[4], E3_Cl[4], E4_Cl[4], E5_Cl[4], E6_Cl[4], E7_Cl[4], E8_Cl[4], E9_Cl[4], E10_Cl[4],
          E11_Cl[4], E12_Cl[4])
C5m = max(E1_Cm[4], E2_Cm[4], E3_Cm[4], E4_Cm[4], E5_Cm[4], E6_Cm[4], E7_Cm[4], E8_Cm[4], E9_Cm[4], E10_Cm[4],
          E11_Cm[4], E12_Cm[4])
C5u = max(E1_Cu[4], E2_Cu[4], E3_Cu[4], E4_Cu[4], E5_Cu[4], E6_Cu[4], E7_Cu[4], E8_Cu[4], E9_Cu[4], E10_Cu[4],
          E11_Cu[4], E12_Cu[4])

C6l = max(E1_Cl[5], E2_Cl[5], E3_Cl[5], E4_Cl[5], E5_Cl[5], E6_Cl[5], E7_Cl[5], E8_Cl[5], E9_Cl[5], E10_Cl[5],
          E11_Cl[5], E12_Cl[5])
C6m = max(E1_Cm[5], E2_Cm[5], E3_Cm[5], E4_Cm[5], E5_Cm[5], E6_Cm[5], E7_Cm[5], E8_Cm[5], E9_Cm[5], E10_Cm[5],
          E11_Cm[5], E12_Cm[5])
C6u = max(E1_Cu[5], E2_Cu[5], E3_Cu[5], E4_Cu[5], E5_Cu[5], E6_Cu[5], E7_Cu[5], E8_Cu[5], E9_Cu[5], E10_Cu[5],
          E11_Cu[5], E12_Cu[5])

C7l = max(E1_Cl[6], E2_Cl[6], E3_Cl[6], E4_Cl[6], E5_Cl[6], E6_Cl[6], E7_Cl[6], E8_Cl[6], E9_Cl[6], E10_Cl[6],
          E11_Cl[6], E12_Cl[6])
C7m = max(E1_Cm[6], E2_Cm[6], E3_Cm[6], E4_Cm[6], E5_Cm[6], E6_Cm[6], E7_Cm[6], E8_Cm[6], E9_Cm[6], E10_Cm[6],
          E11_Cm[6], E12_Cm[6])
C7u = max(E1_Cu[6], E2_Cu[6], E3_Cu[6], E4_Cu[6], E5_Cu[6], E6_Cu[6], E7_Cu[6], E8_Cu[6], E9_Cu[6], E10_Cu[6],
          E11_Cu[6], E12_Cu[6])

C8l = min(E1_Cl[7], E2_Cl[7], E3_Cl[7], E4_Cl[7], E5_Cl[7], E6_Cl[7], E7_Cl[7], E8_Cl[7], E9_Cl[7], E10_Cl[7],
          E11_Cl[7], E12_Cl[7])
C8m = min(E1_Cm[7], E2_Cm[7], E3_Cm[7], E4_Cm[7], E5_Cm[7], E6_Cm[7], E7_Cm[7], E8_Cm[7], E9_Cm[7], E10_Cm[7],
          E11_Cm[7], E12_Cm[7])
C8u = min(E1_Cu[7], E2_Cu[7], E3_Cu[7], E4_Cu[7], E5_Cu[7], E6_Cu[7], E7_Cu[7], E8_Cu[7], E9_Cu[7], E10_Cu[7],
          E11_Cu[7], E12_Cu[7])
# </editor-fold>
# <editor-fold desc="标准化">
E1_C1l = [E1_Cl[0] / C1l, E1_Cl[1] / C2l, E1_Cl[2] / C3l, E1_Cl[3] / C4l, E1_Cl[4] / C5l, E1_Cl[5] / C6l,
          E1_Cl[6] / C7l, C8l / E1_Cl[7]]
E1_C1m = [E1_Cm[0] / C1m, E1_Cm[1] / C2m, E1_Cm[2] / C3m, E1_Cm[3] / C4m, E1_Cm[4] / C5m, E1_Cm[5] / C6m,
          E1_Cm[6] / C7m, C8m / E1_Cm[7]]
E1_C1u = [E1_Cu[0] / C1u, E1_Cu[1] / C2u, E1_Cu[2] / C3u, E1_Cu[3] / C4u, E1_Cu[4] / C5u, E1_Cu[5] / C6u,
          E1_Cu[6] / C7u, C8u / E1_Cu[7]]

E2_C1l = [E2_Cl[0] / C1l, E2_Cl[1] / C2l, E2_Cl[2] / C3l, E2_Cl[3] / C4l, E2_Cl[4] / C5l, E2_Cl[5] / C6l,
          E2_Cl[6] / C7l, C8l / E2_Cl[7]]
E2_C1m = [E2_Cm[0] / C1m, E2_Cm[1] / C2m, E2_Cm[2] / C3m, E2_Cm[3] / C4m, E2_Cm[4] / C5m, E2_Cm[5] / C6m,
          E2_Cm[6] / C7m, C8m / E2_Cm[7]]
E2_C1u = [E2_Cu[0] / C1u, E2_Cu[1] / C2u, E2_Cu[2] / C3u, E2_Cu[3] / C4u, E2_Cu[4] / C5u, E2_Cu[5] / C6u,
          E2_Cu[6] / C7u, C8u / E2_Cu[7]]

E3_C1l = [E3_Cl[0] / C1l, E3_Cl[1] / C2l, E3_Cl[2] / C3l, E3_Cl[3] / C4l, E3_Cl[4] / C5l, E3_Cl[5] / C6l,
          E3_Cl[6] / C7l, C8l / E3_Cl[7]]
E3_C1m = [E3_Cm[0] / C1m, E3_Cm[1] / C2m, E3_Cm[2] / C3m, E3_Cm[3] / C4m, E3_Cm[4] / C5m, E3_Cm[5] / C6m,
          E3_Cm[6] / C7m, C8m / E3_Cm[7]]
E3_C1u = [E3_Cu[0] / C1u, E3_Cu[1] / C2u, E3_Cu[2] / C3u, E3_Cu[3] / C4u, E3_Cu[4] / C5u, E3_Cu[5] / C6u,
          E3_Cu[6] / C7u, C8u / E3_Cu[7]]

E4_C1l = [E4_Cl[0] / C1l, E4_Cl[1] / C2l, E4_Cl[2] / C3l, E4_Cl[3] / C4l, E4_Cl[4] / C5l, E4_Cl[5] / C6l,
          E4_Cl[6] / C7l, C8l / E4_Cl[7]]
E4_C1m = [E4_Cm[0] / C1m, E4_Cm[1] / C2m, E4_Cm[2] / C3m, E4_Cm[3] / C4m, E4_Cm[4] / C5m, E4_Cm[5] / C6m,
          E4_Cm[6] / C7m, C8m / E4_Cm[7]]
E4_C1u = [E4_Cu[0] / C1u, E4_Cu[1] / C2u, E4_Cu[2] / C3u, E4_Cu[3] / C4u, E4_Cu[4] / C5u, E4_Cu[5] / C6u,
          E4_Cu[6] / C7u, C8u / E4_Cu[7]]

E5_C1l = [E5_Cl[0] / C1l, E5_Cl[1] / C2l, E5_Cl[2] / C3l, E5_Cl[3] / C4l, E5_Cl[4] / C5l, E5_Cl[5] / C6l,
          E5_Cl[6] / C7l, C8l / E5_Cl[7]]
E5_C1m = [E5_Cm[0] / C1m, E5_Cm[1] / C2m, E5_Cm[2] / C3m, E5_Cm[3] / C4m, E5_Cm[4] / C5m, E5_Cm[5] / C6m,
          E5_Cm[6] / C7m, C8m / E5_Cm[7]]
E5_C1u = [E5_Cu[0] / C1u, E5_Cu[1] / C2u, E5_Cu[2] / C3u, E5_Cu[3] / C4u, E5_Cu[4] / C5u, E5_Cu[5] / C6u,
          E5_Cu[6] / C7u, C8u / E5_Cu[7]]

E6_C1l = [E6_Cl[0] / C1l, E6_Cl[1] / C2l, E6_Cl[2] / C3l, E6_Cl[3] / C4l, E6_Cl[4] / C5l, E6_Cl[5] / C6l,
          E6_Cl[6] / C7l, C8l / E6_Cl[7]]
E6_C1m = [E6_Cm[0] / C1m, E6_Cm[1] / C2m, E6_Cm[2] / C3m, E6_Cm[3] / C4m, E6_Cm[4] / C5m, E6_Cm[5] / C6m,
          E6_Cm[6] / C7m, C8m / E6_Cm[7]]
E6_C1u = [E6_Cu[0] / C1u, E6_Cu[1] / C2u, E6_Cu[2] / C3u, E6_Cu[3] / C4u, E6_Cu[4] / C5u, E6_Cu[5] / C6u,
          E6_Cu[6] / C7u, C8u / E6_Cu[7]]

E7_C1l = [E7_Cl[0] / C1l, E7_Cl[1] / C2l, E7_Cl[2] / C3l, E7_Cl[3] / C4l, E7_Cl[4] / C5l, E7_Cl[5] / C6l,
          E7_Cl[6] / C7l, C8l / E7_Cl[7]]
E7_C1m = [E7_Cm[0] / C1m, E7_Cm[1] / C2m, E7_Cm[2] / C3m, E7_Cm[3] / C4m, E7_Cm[4] / C5m, E7_Cm[5] / C6m,
          E7_Cm[6] / C7m, C8m / E7_Cm[7]]
E7_C1u = [E7_Cu[0] / C1u, E7_Cu[1] / C2u, E7_Cu[2] / C3u, E7_Cu[3] / C4u, E7_Cu[4] / C5u, E7_Cu[5] / C6u,
          E7_Cu[6] / C7u, C8u / E7_Cu[7]]

E8_C1l = [E8_Cl[0] / C1l, E8_Cl[1] / C2l, E8_Cl[2] / C3l, E8_Cl[3] / C4l, E8_Cl[4] / C5l, E8_Cl[5] / C6l,
          E8_Cl[6] / C7l, C8l / E8_Cl[7]]
E8_C1m = [E8_Cm[0] / C1m, E8_Cm[1] / C2m, E8_Cm[2] / C3m, E8_Cm[3] / C4m, E8_Cm[4] / C5m, E8_Cm[5] / C6m,
          E8_Cm[6] / C7m, C8m / E8_Cm[7]]
E8_C1u = [E8_Cu[0] / C1u, E8_Cu[1] / C2u, E8_Cu[2] / C3u, E8_Cu[3] / C4u, E8_Cu[4] / C5u, E8_Cu[5] / C6u,
          E8_Cu[6] / C7u, C8u / E8_Cu[7]]

E9_C1l = [E9_Cl[0] / C1l, E9_Cl[1] / C2l, E9_Cl[2] / C3l, E9_Cl[3] / C4l, E9_Cl[4] / C5l, E9_Cl[5] / C6l,
          E9_Cl[6] / C7l, C8l / E9_Cl[7]]
E9_C1m = [E9_Cm[0] / C1m, E9_Cm[1] / C2m, E9_Cm[2] / C3m, E9_Cm[3] / C4m, E9_Cm[4] / C5m, E9_Cm[5] / C6m,
          E9_Cm[6] / C7m, C8m / E9_Cm[7]]
E9_C1u = [E9_Cu[0] / C1u, E9_Cu[1] / C2u, E9_Cu[2] / C3u, E9_Cu[3] / C4u, E9_Cu[4] / C5u, E9_Cu[5] / C6u,
          E9_Cu[6] / C7u, C8u / E9_Cu[7]]

E10_C1l = [E10_Cl[0] / C1l, E10_Cl[1] / C2l, E10_Cl[2] / C3l, E10_Cl[3] / C4l, E10_Cl[4] / C5l, E10_Cl[5] / C6l,
           E10_Cl[6] / C7l, C8l / E10_Cl[7]]
E10_C1m = [E10_Cm[0] / C1m, E10_Cm[1] / C2m, E10_Cm[2] / C3m, E10_Cm[3] / C4m, E10_Cm[4] / C5m, E10_Cm[5] / C6m,
           E10_Cm[6] / C7m, C8m / E10_Cm[7]]
E10_C1u = [E10_Cu[0] / C1u, E10_Cu[1] / C2u, E10_Cu[2] / C3u, E10_Cu[3] / C4u, E10_Cu[4] / C5u, E10_Cu[5] / C6u,
           E10_Cu[6] / C7u, C8u / E10_Cu[7]]

E11_C1l = [E11_Cl[0] / C1l, E11_Cl[1] / C2l, E11_Cl[2] / C3l, E11_Cl[3] / C4l, E11_Cl[4] / C5l, E11_Cl[5] / C6l,
           E11_Cl[6] / C7l, C8l / E11_Cl[7]]
E11_C1m = [E11_Cm[0] / C1m, E11_Cm[1] / C2m, E11_Cm[2] / C3m, E11_Cm[3] / C4m, E11_Cm[4] / C5m, E11_Cm[5] / C6m,
           E11_Cm[6] / C7m, C8m / E11_Cm[7]]
E11_C1u = [E11_Cu[0] / C1u, E11_Cu[1] / C2u, E11_Cu[2] / C3u, E11_Cu[3] / C4u, E11_Cu[4] / C5u, E11_Cu[5] / C6u,
           E11_Cu[6] / C7u, C8u / E11_Cu[7]]

E12_C1l = [E12_Cl[0] / C1l, E12_Cl[1] / C2l, E12_Cl[2] / C3l, E12_Cl[3] / C4l, E12_Cl[4] / C5l, E12_Cl[5] / C6l,
           E12_Cl[6] / C7l, C8l / E12_Cl[7]]
E12_C1m = [E12_Cm[0] / C1m, E12_Cm[1] / C2m, E12_Cm[2] / C3m, E12_Cm[3] / C4m, E12_Cm[4] / C5m, E12_Cm[5] / C6m,
           E12_Cm[6] / C7m, C8m / E12_Cm[7]]
E12_C1u = [E12_Cu[0] / C1u, E12_Cu[1] / C2u, E12_Cu[2] / C3u, E12_Cu[3] / C4u, E12_Cu[4] / C5u, E12_Cu[5] / C6u,
           E12_Cu[6] / C7u, C8u / E12_Cu[7]]
# </editor-fold>
weight = [0.288067725, 0.172838918, 0.104147864, 0.10518185, 0.060459523, 0.064613164, 0.078784084, 0.125906872]
# E1
# <editor-fold desc="E1_F_SCoB_l">
E1_F_SCoB_l1 = sum(
    ((((weight[0] * weight[1] / (1 - weight[0])) * math.pow(E1_C1l[0], p) * math.pow(E1_C1l[1], q)),
      ((weight[0] * weight[2] / (1 - weight[0])) * math.pow(E1_C1l[0], p) * math.pow(E1_C1l[2], q)),
      ((weight[0] * weight[3] / (1 - weight[0])) * math.pow(E1_C1l[0], p) * math.pow(E1_C1l[3], q)),
      ((weight[0] * weight[4] / (1 - weight[0])) * math.pow(E1_C1l[0], p) * math.pow(E1_C1l[4], q)),
      ((weight[0] * weight[5] / (1 - weight[0])) * math.pow(E1_C1l[0], p) * math.pow(E1_C1l[5], q)),
      ((weight[0] * weight[6] / (1 - weight[0])) * math.pow(E1_C1l[0], p) * math.pow(E1_C1l[6], q)),
      ((weight[0] * weight[7] / (1 - weight[0])) * math.pow(E1_C1l[0], p) * math.pow(E1_C1l[2], q)))))

E1_F_SCoB_l2 = sum(
    ((((weight[1] * weight[2] / (1 - weight[1])) * math.pow(E1_C1l[1], p) * math.pow(E1_C1l[2], q)),
      ((weight[1] * weight[3] / (1 - weight[1])) * math.pow(E1_C1l[1], p) * math.pow(E1_C1l[3], q)),
      ((weight[1] * weight[4] / (1 - weight[1])) * math.pow(E1_C1l[1], p) * math.pow(E1_C1l[4], q)),
      ((weight[1] * weight[5] / (1 - weight[1])) * math.pow(E1_C1l[1], p) * math.pow(E1_C1l[5], q)),
      ((weight[1] * weight[6] / (1 - weight[1])) * math.pow(E1_C1l[1], p) * math.pow(E1_C1l[6], q)),
      ((weight[1] * weight[7] / (1 - weight[1])) * math.pow(E1_C1l[1], p) * math.pow(E1_C1l[7], q)),
      ((weight[1] * weight[0] / (1 - weight[1])) * math.pow(E1_C1l[1], p) * math.pow(E1_C1l[0], q)))))

E1_F_SCoB_l3 = sum(
    ((((weight[2] * weight[3] / (1 - weight[2])) * math.pow(E1_C1l[2], p) * math.pow(E1_C1l[3], q)),
      ((weight[2] * weight[4] / (1 - weight[2])) * math.pow(E1_C1l[2], p) * math.pow(E1_C1l[4], q)),
      ((weight[2] * weight[5] / (1 - weight[2])) * math.pow(E1_C1l[2], p) * math.pow(E1_C1l[5], q)),
      ((weight[2] * weight[6] / (1 - weight[2])) * math.pow(E1_C1l[2], p) * math.pow(E1_C1l[6], q)),
      ((weight[2] * weight[7] / (1 - weight[2])) * math.pow(E1_C1l[2], p) * math.pow(E1_C1l[7], q)),
      ((weight[2] * weight[0] / (1 - weight[2])) * math.pow(E1_C1l[2], p) * math.pow(E1_C1l[0], q)),
      ((weight[2] * weight[1] / (1 - weight[2])) * math.pow(E1_C1l[2], p) * math.pow(E1_C1l[1], q)))))

E1_F_SCoB_l4 = sum(
    ((((weight[3] * weight[4] / (1 - weight[3])) * math.pow(E1_C1l[3], p) * math.pow(E1_C1l[4], q)),
      ((weight[3] * weight[5] / (1 - weight[3])) * math.pow(E1_C1l[3], p) * math.pow(E1_C1l[5], q)),
      ((weight[3] * weight[6] / (1 - weight[3])) * math.pow(E1_C1l[3], p) * math.pow(E1_C1l[6], q)),
      ((weight[3] * weight[7] / (1 - weight[3])) * math.pow(E1_C1l[3], p) * math.pow(E1_C1l[7], q)),
      ((weight[3] * weight[0] / (1 - weight[3])) * math.pow(E1_C1l[3], p) * math.pow(E1_C1l[0], q)),
      ((weight[3] * weight[1] / (1 - weight[3])) * math.pow(E1_C1l[3], p) * math.pow(E1_C1l[1], q)),
      ((weight[3] * weight[2] / (1 - weight[3])) * math.pow(E1_C1l[3], p) * math.pow(E1_C1l[2], q)))))

E1_F_SCoB_l5 = sum(
    ((((weight[4] * weight[5] / (1 - weight[4])) * math.pow(E1_C1l[4], p) * math.pow(E1_C1l[5], q)),
      ((weight[4] * weight[6] / (1 - weight[4])) * math.pow(E1_C1l[4], p) * math.pow(E1_C1l[6], q)),
      ((weight[4] * weight[7] / (1 - weight[4])) * math.pow(E1_C1l[4], p) * math.pow(E1_C1l[7], q)),
      ((weight[4] * weight[0] / (1 - weight[4])) * math.pow(E1_C1l[4], p) * math.pow(E1_C1l[0], q)),
      ((weight[4] * weight[1] / (1 - weight[4])) * math.pow(E1_C1l[4], p) * math.pow(E1_C1l[1], q)),
      ((weight[4] * weight[2] / (1 - weight[4])) * math.pow(E1_C1l[4], p) * math.pow(E1_C1l[2], q)),
      ((weight[4] * weight[3] / (1 - weight[4])) * math.pow(E1_C1l[4], p) * math.pow(E1_C1l[3], q)))))

E1_F_SCoB_l6 = sum(
    ((((weight[5] * weight[6] / (1 - weight[5])) * math.pow(E1_C1l[5], p) * math.pow(E1_C1l[6], q)),
      ((weight[5] * weight[7] / (1 - weight[5])) * math.pow(E1_C1l[5], p) * math.pow(E1_C1l[7], q)),
      ((weight[5] * weight[0] / (1 - weight[5])) * math.pow(E1_C1l[5], p) * math.pow(E1_C1l[0], q)),
      ((weight[5] * weight[1] / (1 - weight[5])) * math.pow(E1_C1l[5], p) * math.pow(E1_C1l[1], q)),
      ((weight[5] * weight[2] / (1 - weight[5])) * math.pow(E1_C1l[5], p) * math.pow(E1_C1l[2], q)),
      ((weight[5] * weight[3] / (1 - weight[5])) * math.pow(E1_C1l[5], p) * math.pow(E1_C1l[3], q)),
      ((weight[5] * weight[4] / (1 - weight[5])) * math.pow(E1_C1l[5], p) * math.pow(E1_C1l[4], q)))))

E1_F_SCoB_l7 = sum(
    ((((weight[6] * weight[7] / (1 - weight[6])) * math.pow(E1_C1l[6], p) * math.pow(E1_C1l[7], q)),
      ((weight[6] * weight[0] / (1 - weight[6])) * math.pow(E1_C1l[6], p) * math.pow(E1_C1l[0], q)),
      ((weight[6] * weight[1] / (1 - weight[6])) * math.pow(E1_C1l[6], p) * math.pow(E1_C1l[1], q)),
      ((weight[6] * weight[2] / (1 - weight[6])) * math.pow(E1_C1l[6], p) * math.pow(E1_C1l[2], q)),
      ((weight[6] * weight[3] / (1 - weight[6])) * math.pow(E1_C1l[6], p) * math.pow(E1_C1l[3], q)),
      ((weight[6] * weight[4] / (1 - weight[6])) * math.pow(E1_C1l[6], p) * math.pow(E1_C1l[4], q)),
      ((weight[6] * weight[5] / (1 - weight[6])) * math.pow(E1_C1l[6], p) * math.pow(E1_C1l[5], q)))))

E1_F_SCoB_l8 = sum(
    ((((weight[7] * weight[0] / (1 - weight[7])) * math.pow(E1_C1l[7], p) * math.pow(E1_C1l[0], q)),
      ((weight[7] * weight[1] / (1 - weight[7])) * math.pow(E1_C1l[7], p) * math.pow(E1_C1l[1], q)),
      ((weight[7] * weight[2] / (1 - weight[7])) * math.pow(E1_C1l[7], p) * math.pow(E1_C1l[2], q)),
      ((weight[7] * weight[3] / (1 - weight[7])) * math.pow(E1_C1l[7], p) * math.pow(E1_C1l[3], q)),
      ((weight[7] * weight[4] / (1 - weight[7])) * math.pow(E1_C1l[7], p) * math.pow(E1_C1l[4], q)),
      ((weight[7] * weight[5] / (1 - weight[7])) * math.pow(E1_C1l[7], p) * math.pow(E1_C1l[5], q)),
      ((weight[7] * weight[6] / (1 - weight[7])) * math.pow(E1_C1l[7], p) * math.pow(E1_C1l[6], q)))))
E1_F_SCoB_l = pow(sum(
    (E1_F_SCoB_l1, E1_F_SCoB_l2, E1_F_SCoB_l3, E1_F_SCoB_l4, E1_F_SCoB_l5, E1_F_SCoB_l6, E1_F_SCoB_l7, E1_F_SCoB_l8)),
    a)
# </editor-fold>
# <editor-fold desc="E1_F_SCoB_m">
E1_F_SCoB_m1 = sum(
    ((((weight[0] * weight[1] / (1 - weight[0])) * math.pow(E1_C1m[0], p) * math.pow(E1_C1m[1], q)),
      ((weight[0] * weight[2] / (1 - weight[0])) * math.pow(E1_C1m[0], p) * math.pow(E1_C1m[2], q)),
      ((weight[0] * weight[3] / (1 - weight[0])) * math.pow(E1_C1m[0], p) * math.pow(E1_C1m[3], q)),
      ((weight[0] * weight[4] / (1 - weight[0])) * math.pow(E1_C1m[0], p) * math.pow(E1_C1m[4], q)),
      ((weight[0] * weight[5] / (1 - weight[0])) * math.pow(E1_C1m[0], p) * math.pow(E1_C1m[5], q)),
      ((weight[0] * weight[6] / (1 - weight[0])) * math.pow(E1_C1m[0], p) * math.pow(E1_C1m[6], q)),
      ((weight[0] * weight[7] / (1 - weight[0])) * math.pow(E1_C1m[0], p) * math.pow(E1_C1m[2], q)))))

E1_F_SCoB_m2 = sum(
    ((((weight[1] * weight[2] / (1 - weight[1])) * math.pow(E1_C1m[1], p) * math.pow(E1_C1m[2], q)),
      ((weight[1] * weight[3] / (1 - weight[1])) * math.pow(E1_C1m[1], p) * math.pow(E1_C1m[3], q)),
      ((weight[1] * weight[4] / (1 - weight[1])) * math.pow(E1_C1m[1], p) * math.pow(E1_C1m[4], q)),
      ((weight[1] * weight[5] / (1 - weight[1])) * math.pow(E1_C1m[1], p) * math.pow(E1_C1m[5], q)),
      ((weight[1] * weight[6] / (1 - weight[1])) * math.pow(E1_C1m[1], p) * math.pow(E1_C1m[6], q)),
      ((weight[1] * weight[7] / (1 - weight[1])) * math.pow(E1_C1m[1], p) * math.pow(E1_C1m[7], q)),
      ((weight[1] * weight[0] / (1 - weight[1])) * math.pow(E1_C1m[1], p) * math.pow(E1_C1m[0], q)))))

E1_F_SCoB_m3 = sum(
    ((((weight[2] * weight[3] / (1 - weight[2])) * math.pow(E1_C1m[2], p) * math.pow(E1_C1m[3], q)),
      ((weight[2] * weight[4] / (1 - weight[2])) * math.pow(E1_C1m[2], p) * math.pow(E1_C1m[4], q)),
      ((weight[2] * weight[5] / (1 - weight[2])) * math.pow(E1_C1m[2], p) * math.pow(E1_C1m[5], q)),
      ((weight[2] * weight[6] / (1 - weight[2])) * math.pow(E1_C1m[2], p) * math.pow(E1_C1m[6], q)),
      ((weight[2] * weight[7] / (1 - weight[2])) * math.pow(E1_C1m[2], p) * math.pow(E1_C1m[7], q)),
      ((weight[2] * weight[0] / (1 - weight[2])) * math.pow(E1_C1m[2], p) * math.pow(E1_C1m[0], q)),
      ((weight[2] * weight[1] / (1 - weight[2])) * math.pow(E1_C1m[2], p) * math.pow(E1_C1m[1], q)))))

E1_F_SCoB_m4 = sum(
    ((((weight[3] * weight[4] / (1 - weight[3])) * math.pow(E1_C1m[3], p) * math.pow(E1_C1m[4], q)),
      ((weight[3] * weight[5] / (1 - weight[3])) * math.pow(E1_C1m[3], p) * math.pow(E1_C1m[5], q)),
      ((weight[3] * weight[6] / (1 - weight[3])) * math.pow(E1_C1m[3], p) * math.pow(E1_C1m[6], q)),
      ((weight[3] * weight[7] / (1 - weight[3])) * math.pow(E1_C1m[3], p) * math.pow(E1_C1m[7], q)),
      ((weight[3] * weight[0] / (1 - weight[3])) * math.pow(E1_C1m[3], p) * math.pow(E1_C1m[0], q)),
      ((weight[3] * weight[1] / (1 - weight[3])) * math.pow(E1_C1m[3], p) * math.pow(E1_C1m[1], q)),
      ((weight[3] * weight[2] / (1 - weight[3])) * math.pow(E1_C1m[3], p) * math.pow(E1_C1m[2], q)))))

E1_F_SCoB_m5 = sum(
    ((((weight[4] * weight[5] / (1 - weight[4])) * math.pow(E1_C1m[4], p) * math.pow(E1_C1m[5], q)),
      ((weight[4] * weight[6] / (1 - weight[4])) * math.pow(E1_C1m[4], p) * math.pow(E1_C1m[6], q)),
      ((weight[4] * weight[7] / (1 - weight[4])) * math.pow(E1_C1m[4], p) * math.pow(E1_C1m[7], q)),
      ((weight[4] * weight[0] / (1 - weight[4])) * math.pow(E1_C1m[4], p) * math.pow(E1_C1m[0], q)),
      ((weight[4] * weight[1] / (1 - weight[4])) * math.pow(E1_C1m[4], p) * math.pow(E1_C1m[1], q)),
      ((weight[4] * weight[2] / (1 - weight[4])) * math.pow(E1_C1m[4], p) * math.pow(E1_C1m[2], q)),
      ((weight[4] * weight[3] / (1 - weight[4])) * math.pow(E1_C1m[4], p) * math.pow(E1_C1m[3], q)))))

E1_F_SCoB_m6 = sum(
    ((((weight[5] * weight[6] / (1 - weight[5])) * math.pow(E1_C1m[5], p) * math.pow(E1_C1m[6], q)),
      ((weight[5] * weight[7] / (1 - weight[5])) * math.pow(E1_C1m[5], p) * math.pow(E1_C1m[7], q)),
      ((weight[5] * weight[0] / (1 - weight[5])) * math.pow(E1_C1m[5], p) * math.pow(E1_C1m[0], q)),
      ((weight[5] * weight[1] / (1 - weight[5])) * math.pow(E1_C1m[5], p) * math.pow(E1_C1m[1], q)),
      ((weight[5] * weight[2] / (1 - weight[5])) * math.pow(E1_C1m[5], p) * math.pow(E1_C1m[2], q)),
      ((weight[5] * weight[3] / (1 - weight[5])) * math.pow(E1_C1m[5], p) * math.pow(E1_C1m[3], q)),
      ((weight[5] * weight[4] / (1 - weight[5])) * math.pow(E1_C1m[5], p) * math.pow(E1_C1m[4], q)))))

E1_F_SCoB_m7 = sum(
    ((((weight[6] * weight[7] / (1 - weight[6])) * math.pow(E1_C1m[6], p) * math.pow(E1_C1m[7], q)),
      ((weight[6] * weight[0] / (1 - weight[6])) * math.pow(E1_C1m[6], p) * math.pow(E1_C1m[0], q)),
      ((weight[6] * weight[1] / (1 - weight[6])) * math.pow(E1_C1m[6], p) * math.pow(E1_C1m[1], q)),
      ((weight[6] * weight[2] / (1 - weight[6])) * math.pow(E1_C1m[6], p) * math.pow(E1_C1m[2], q)),
      ((weight[6] * weight[3] / (1 - weight[6])) * math.pow(E1_C1m[6], p) * math.pow(E1_C1m[3], q)),
      ((weight[6] * weight[4] / (1 - weight[6])) * math.pow(E1_C1m[6], p) * math.pow(E1_C1m[4], q)),
      ((weight[6] * weight[5] / (1 - weight[6])) * math.pow(E1_C1m[6], p) * math.pow(E1_C1m[5], q)))))

E1_F_SCoB_m8 = sum(
    ((((weight[7] * weight[0] / (1 - weight[7])) * math.pow(E1_C1m[7], p) * math.pow(E1_C1m[0], q)),
      ((weight[7] * weight[1] / (1 - weight[7])) * math.pow(E1_C1m[7], p) * math.pow(E1_C1m[1], q)),
      ((weight[7] * weight[2] / (1 - weight[7])) * math.pow(E1_C1m[7], p) * math.pow(E1_C1m[2], q)),
      ((weight[7] * weight[3] / (1 - weight[7])) * math.pow(E1_C1m[7], p) * math.pow(E1_C1m[3], q)),
      ((weight[7] * weight[4] / (1 - weight[7])) * math.pow(E1_C1m[7], p) * math.pow(E1_C1m[4], q)),
      ((weight[7] * weight[5] / (1 - weight[7])) * math.pow(E1_C1m[7], p) * math.pow(E1_C1m[5], q)),
      ((weight[7] * weight[6] / (1 - weight[7])) * math.pow(E1_C1m[7], p) * math.pow(E1_C1m[6], q)))))
E1_F_SCoB_m = pow(sum(
    (E1_F_SCoB_m1, E1_F_SCoB_m2, E1_F_SCoB_m3, E1_F_SCoB_m4, E1_F_SCoB_m5, E1_F_SCoB_m6, E1_F_SCoB_m7, E1_F_SCoB_m8)),
    a)
# </editor-fold>
# <editor-fold desc="E1_F_SCoB_u">
E1_F_SCoB_u1 = sum(
    ((((weight[0] * weight[1] / (1 - weight[0])) * math.pow(E1_C1u[0], p) * math.pow(E1_C1u[1], q)),
      ((weight[0] * weight[2] / (1 - weight[0])) * math.pow(E1_C1u[0], p) * math.pow(E1_C1u[2], q)),
      ((weight[0] * weight[3] / (1 - weight[0])) * math.pow(E1_C1u[0], p) * math.pow(E1_C1u[3], q)),
      ((weight[0] * weight[4] / (1 - weight[0])) * math.pow(E1_C1u[0], p) * math.pow(E1_C1u[4], q)),
      ((weight[0] * weight[5] / (1 - weight[0])) * math.pow(E1_C1u[0], p) * math.pow(E1_C1u[5], q)),
      ((weight[0] * weight[6] / (1 - weight[0])) * math.pow(E1_C1u[0], p) * math.pow(E1_C1u[6], q)),
      ((weight[0] * weight[7] / (1 - weight[0])) * math.pow(E1_C1u[0], p) * math.pow(E1_C1u[2], q)))))

E1_F_SCoB_u2 = sum(
    ((((weight[1] * weight[2] / (1 - weight[1])) * math.pow(E1_C1u[1], p) * math.pow(E1_C1u[2], q)),
      ((weight[1] * weight[3] / (1 - weight[1])) * math.pow(E1_C1u[1], p) * math.pow(E1_C1u[3], q)),
      ((weight[1] * weight[4] / (1 - weight[1])) * math.pow(E1_C1u[1], p) * math.pow(E1_C1u[4], q)),
      ((weight[1] * weight[5] / (1 - weight[1])) * math.pow(E1_C1u[1], p) * math.pow(E1_C1u[5], q)),
      ((weight[1] * weight[6] / (1 - weight[1])) * math.pow(E1_C1u[1], p) * math.pow(E1_C1u[6], q)),
      ((weight[1] * weight[7] / (1 - weight[1])) * math.pow(E1_C1u[1], p) * math.pow(E1_C1u[7], q)),
      ((weight[1] * weight[0] / (1 - weight[1])) * math.pow(E1_C1u[1], p) * math.pow(E1_C1u[0], q)))))

E1_F_SCoB_u3 = sum(
    ((((weight[2] * weight[3] / (1 - weight[2])) * math.pow(E1_C1u[2], p) * math.pow(E1_C1u[3], q)),
      ((weight[2] * weight[4] / (1 - weight[2])) * math.pow(E1_C1u[2], p) * math.pow(E1_C1u[4], q)),
      ((weight[2] * weight[5] / (1 - weight[2])) * math.pow(E1_C1u[2], p) * math.pow(E1_C1u[5], q)),
      ((weight[2] * weight[6] / (1 - weight[2])) * math.pow(E1_C1u[2], p) * math.pow(E1_C1u[6], q)),
      ((weight[2] * weight[7] / (1 - weight[2])) * math.pow(E1_C1u[2], p) * math.pow(E1_C1u[7], q)),
      ((weight[2] * weight[0] / (1 - weight[2])) * math.pow(E1_C1u[2], p) * math.pow(E1_C1u[0], q)),
      ((weight[2] * weight[1] / (1 - weight[2])) * math.pow(E1_C1u[2], p) * math.pow(E1_C1u[1], q)))))

E1_F_SCoB_u4 = sum(
    ((((weight[3] * weight[4] / (1 - weight[3])) * math.pow(E1_C1u[3], p) * math.pow(E1_C1u[4], q)),
      ((weight[3] * weight[5] / (1 - weight[3])) * math.pow(E1_C1u[3], p) * math.pow(E1_C1u[5], q)),
      ((weight[3] * weight[6] / (1 - weight[3])) * math.pow(E1_C1u[3], p) * math.pow(E1_C1u[6], q)),
      ((weight[3] * weight[7] / (1 - weight[3])) * math.pow(E1_C1u[3], p) * math.pow(E1_C1u[7], q)),
      ((weight[3] * weight[0] / (1 - weight[3])) * math.pow(E1_C1u[3], p) * math.pow(E1_C1u[0], q)),
      ((weight[3] * weight[1] / (1 - weight[3])) * math.pow(E1_C1u[3], p) * math.pow(E1_C1u[1], q)),
      ((weight[3] * weight[2] / (1 - weight[3])) * math.pow(E1_C1u[3], p) * math.pow(E1_C1u[2], q)))))

E1_F_SCoB_u5 = sum(
    ((((weight[4] * weight[5] / (1 - weight[4])) * math.pow(E1_C1u[4], p) * math.pow(E1_C1u[5], q)),
      ((weight[4] * weight[6] / (1 - weight[4])) * math.pow(E1_C1u[4], p) * math.pow(E1_C1u[6], q)),
      ((weight[4] * weight[7] / (1 - weight[4])) * math.pow(E1_C1u[4], p) * math.pow(E1_C1u[7], q)),
      ((weight[4] * weight[0] / (1 - weight[4])) * math.pow(E1_C1u[4], p) * math.pow(E1_C1u[0], q)),
      ((weight[4] * weight[1] / (1 - weight[4])) * math.pow(E1_C1u[4], p) * math.pow(E1_C1u[1], q)),
      ((weight[4] * weight[2] / (1 - weight[4])) * math.pow(E1_C1u[4], p) * math.pow(E1_C1u[2], q)),
      ((weight[4] * weight[3] / (1 - weight[4])) * math.pow(E1_C1u[4], p) * math.pow(E1_C1u[3], q)))))

E1_F_SCoB_u6 = sum(
    ((((weight[5] * weight[6] / (1 - weight[5])) * math.pow(E1_C1u[5], p) * math.pow(E1_C1u[6], q)),
      ((weight[5] * weight[7] / (1 - weight[5])) * math.pow(E1_C1u[5], p) * math.pow(E1_C1u[7], q)),
      ((weight[5] * weight[0] / (1 - weight[5])) * math.pow(E1_C1u[5], p) * math.pow(E1_C1u[0], q)),
      ((weight[5] * weight[1] / (1 - weight[5])) * math.pow(E1_C1u[5], p) * math.pow(E1_C1u[1], q)),
      ((weight[5] * weight[2] / (1 - weight[5])) * math.pow(E1_C1u[5], p) * math.pow(E1_C1u[2], q)),
      ((weight[5] * weight[3] / (1 - weight[5])) * math.pow(E1_C1u[5], p) * math.pow(E1_C1u[3], q)),
      ((weight[5] * weight[4] / (1 - weight[5])) * math.pow(E1_C1u[5], p) * math.pow(E1_C1u[4], q)))))

E1_F_SCoB_u7 = sum(
    ((((weight[6] * weight[7] / (1 - weight[6])) * math.pow(E1_C1u[6], p) * math.pow(E1_C1u[7], q)),
      ((weight[6] * weight[0] / (1 - weight[6])) * math.pow(E1_C1u[6], p) * math.pow(E1_C1u[0], q)),
      ((weight[6] * weight[1] / (1 - weight[6])) * math.pow(E1_C1u[6], p) * math.pow(E1_C1u[1], q)),
      ((weight[6] * weight[2] / (1 - weight[6])) * math.pow(E1_C1u[6], p) * math.pow(E1_C1u[2], q)),
      ((weight[6] * weight[3] / (1 - weight[6])) * math.pow(E1_C1u[6], p) * math.pow(E1_C1u[3], q)),
      ((weight[6] * weight[4] / (1 - weight[6])) * math.pow(E1_C1u[6], p) * math.pow(E1_C1u[4], q)),
      ((weight[6] * weight[5] / (1 - weight[6])) * math.pow(E1_C1u[6], p) * math.pow(E1_C1u[5], q)))))

E1_F_SCoB_u8 = sum(
    ((((weight[7] * weight[0] / (1 - weight[7])) * math.pow(E1_C1u[7], p) * math.pow(E1_C1u[0], q)),
      ((weight[7] * weight[1] / (1 - weight[7])) * math.pow(E1_C1u[7], p) * math.pow(E1_C1u[1], q)),
      ((weight[7] * weight[2] / (1 - weight[7])) * math.pow(E1_C1u[7], p) * math.pow(E1_C1u[2], q)),
      ((weight[7] * weight[3] / (1 - weight[7])) * math.pow(E1_C1u[7], p) * math.pow(E1_C1u[3], q)),
      ((weight[7] * weight[4] / (1 - weight[7])) * math.pow(E1_C1u[7], p) * math.pow(E1_C1u[4], q)),
      ((weight[7] * weight[5] / (1 - weight[7])) * math.pow(E1_C1u[7], p) * math.pow(E1_C1u[5], q)),
      ((weight[7] * weight[6] / (1 - weight[7])) * math.pow(E1_C1u[7], p) * math.pow(E1_C1u[6], q)))))
E1_F_SCoB_u = pow(sum(
    (E1_F_SCoB_u1, E1_F_SCoB_u2, E1_F_SCoB_u3, E1_F_SCoB_u4, E1_F_SCoB_u5, E1_F_SCoB_u6, E1_F_SCoB_u7, E1_F_SCoB_u8)),
    a)
# </editor-fold>
# print(E1_F_SCoB_l)
# print(E1_F_SCoB_m)
# print(E1_F_SCoB_u)
E1_SCoB = (E1_F_SCoB_l + 4 * E1_F_SCoB_m + E1_F_SCoB_u) / 6

# <editor-fold desc="E1_F_PCoB_l">
E1_F_PCoB_l1 = numpy.prod((math.pow((p * E1_C1l[0] + q * E1_C1l[1]), (weight[0] * weight[1] / (1 - weight[0]))),
                           math.pow((p * E1_C1l[0] + q * E1_C1l[2]), (weight[0] * weight[2] / (1 - weight[0]))),
                           math.pow((p * E1_C1l[0] + q * E1_C1l[3]), (weight[0] * weight[3] / (1 - weight[0]))),
                           math.pow((p * E1_C1l[0] + q * E1_C1l[4]), (weight[0] * weight[4] / (1 - weight[0]))),
                           math.pow((p * E1_C1l[0] + q * E1_C1l[5]), (weight[0] * weight[5] / (1 - weight[0]))),
                           math.pow((p * E1_C1l[0] + q * E1_C1l[6]), (weight[0] * weight[6] / (1 - weight[0]))),
                           math.pow((p * E1_C1l[0] + q * E1_C1l[7]), (weight[0] * weight[7] / (1 - weight[0])))))

E1_F_PCoB_l2 = numpy.prod((math.pow((p * E1_C1l[1] + q * E1_C1l[2]), (weight[1] * weight[2] / (1 - weight[1]))),
                           math.pow((p * E1_C1l[1] + q * E1_C1l[3]), (weight[1] * weight[3] / (1 - weight[1]))),
                           math.pow((p * E1_C1l[1] + q * E1_C1l[4]), (weight[1] * weight[4] / (1 - weight[1]))),
                           math.pow((p * E1_C1l[1] + q * E1_C1l[5]), (weight[1] * weight[5] / (1 - weight[1]))),
                           math.pow((p * E1_C1l[1] + q * E1_C1l[6]), (weight[1] * weight[6] / (1 - weight[1]))),
                           math.pow((p * E1_C1l[1] + q * E1_C1l[7]), (weight[1] * weight[7] / (1 - weight[1]))),
                           math.pow((p * E1_C1l[1] + q * E1_C1l[0]), (weight[1] * weight[0] / (1 - weight[1])))))

E1_F_PCoB_l3 = numpy.prod((math.pow((p * E1_C1l[2] + q * E1_C1l[3]), (weight[2] * weight[3] / (1 - weight[2]))),
                           math.pow((p * E1_C1l[2] + q * E1_C1l[4]), (weight[2] * weight[4] / (1 - weight[2]))),
                           math.pow((p * E1_C1l[2] + q * E1_C1l[5]), (weight[2] * weight[5] / (1 - weight[2]))),
                           math.pow((p * E1_C1l[2] + q * E1_C1l[6]), (weight[2] * weight[6] / (1 - weight[2]))),
                           math.pow((p * E1_C1l[2] + q * E1_C1l[7]), (weight[2] * weight[7] / (1 - weight[2]))),
                           math.pow((p * E1_C1l[2] + q * E1_C1l[0]), (weight[2] * weight[0] / (1 - weight[2]))),
                           math.pow((p * E1_C1l[2] + q * E1_C1l[1]), (weight[2] * weight[1] / (1 - weight[2])))))

E1_F_PCoB_l4 = numpy.prod((math.pow((p * E1_C1l[3] + q * E1_C1l[4]), (weight[3] * weight[4] / (1 - weight[3]))),
                           math.pow((p * E1_C1l[3] + q * E1_C1l[5]), (weight[3] * weight[5] / (1 - weight[3]))),
                           math.pow((p * E1_C1l[3] + q * E1_C1l[6]), (weight[3] * weight[6] / (1 - weight[3]))),
                           math.pow((p * E1_C1l[3] + q * E1_C1l[7]), (weight[3] * weight[7] / (1 - weight[3]))),
                           math.pow((p * E1_C1l[3] + q * E1_C1l[0]), (weight[3] * weight[0] / (1 - weight[3]))),
                           math.pow((p * E1_C1l[3] + q * E1_C1l[1]), (weight[3] * weight[1] / (1 - weight[3]))),
                           math.pow((p * E1_C1l[3] + q * E1_C1l[2]), (weight[3] * weight[2] / (1 - weight[3])))))

E1_F_PCoB_l5 = numpy.prod((math.pow((p * E1_C1l[4] + q * E1_C1l[5]), (weight[4] * weight[5] / (1 - weight[4]))),
                           math.pow((p * E1_C1l[4] + q * E1_C1l[6]), (weight[4] * weight[6] / (1 - weight[4]))),
                           math.pow((p * E1_C1l[4] + q * E1_C1l[7]), (weight[4] * weight[7] / (1 - weight[4]))),
                           math.pow((p * E1_C1l[4] + q * E1_C1l[0]), (weight[4] * weight[0] / (1 - weight[4]))),
                           math.pow((p * E1_C1l[4] + q * E1_C1l[1]), (weight[4] * weight[1] / (1 - weight[4]))),
                           math.pow((p * E1_C1l[4] + q * E1_C1l[2]), (weight[4] * weight[2] / (1 - weight[4]))),
                           math.pow((p * E1_C1l[4] + q * E1_C1l[3]), (weight[4] * weight[3] / (1 - weight[4])))))

E1_F_PCoB_l6 = numpy.prod((math.pow((p * E1_C1l[5] + q * E1_C1l[6]), (weight[5] * weight[6] / (1 - weight[5]))),
                           math.pow((p * E1_C1l[5] + q * E1_C1l[7]), (weight[5] * weight[7] / (1 - weight[5]))),
                           math.pow((p * E1_C1l[5] + q * E1_C1l[0]), (weight[5] * weight[0] / (1 - weight[5]))),
                           math.pow((p * E1_C1l[5] + q * E1_C1l[1]), (weight[5] * weight[1] / (1 - weight[5]))),
                           math.pow((p * E1_C1l[5] + q * E1_C1l[2]), (weight[5] * weight[2] / (1 - weight[5]))),
                           math.pow((p * E1_C1l[5] + q * E1_C1l[3]), (weight[5] * weight[3] / (1 - weight[5]))),
                           math.pow((p * E1_C1l[5] + q * E1_C1l[4]), (weight[5] * weight[4] / (1 - weight[5])))))

E1_F_PCoB_l7 = numpy.prod((math.pow((p * E1_C1l[6] + q * E1_C1l[7]), (weight[6] * weight[7] / (1 - weight[6]))),
                           math.pow((p * E1_C1l[6] + q * E1_C1l[0]), (weight[6] * weight[0] / (1 - weight[6]))),
                           math.pow((p * E1_C1l[6] + q * E1_C1l[1]), (weight[6] * weight[1] / (1 - weight[6]))),
                           math.pow((p * E1_C1l[6] + q * E1_C1l[2]), (weight[6] * weight[2] / (1 - weight[6]))),
                           math.pow((p * E1_C1l[6] + q * E1_C1l[3]), (weight[6] * weight[3] / (1 - weight[6]))),
                           math.pow((p * E1_C1l[6] + q * E1_C1l[4]), (weight[6] * weight[4] / (1 - weight[6]))),
                           math.pow((p * E1_C1l[6] + q * E1_C1l[5]), (weight[6] * weight[5] / (1 - weight[6])))))

E1_F_PCoB_l8 = numpy.prod((math.pow((p * E1_C1l[7] + q * E1_C1l[0]), (weight[7] * weight[0] / (1 - weight[7]))),
                           math.pow((p * E1_C1l[7] + q * E1_C1l[1]), (weight[7] * weight[1] / (1 - weight[7]))),
                           math.pow((p * E1_C1l[7] + q * E1_C1l[2]), (weight[7] * weight[2] / (1 - weight[7]))),
                           math.pow((p * E1_C1l[7] + q * E1_C1l[3]), (weight[7] * weight[3] / (1 - weight[7]))),
                           math.pow((p * E1_C1l[7] + q * E1_C1l[4]), (weight[7] * weight[4] / (1 - weight[7]))),
                           math.pow((p * E1_C1l[7] + q * E1_C1l[5]), (weight[7] * weight[5] / (1 - weight[7]))),
                           math.pow((p * E1_C1l[7] + q * E1_C1l[6]), (weight[7] * weight[6] / (1 - weight[7])))))
E1_F_PCoB_l = a * numpy.prod(
    (E1_F_PCoB_l1, E1_F_PCoB_l2, E1_F_PCoB_l3, E1_F_PCoB_l4, E1_F_PCoB_l5, E1_F_PCoB_l6, E1_F_PCoB_l7, E1_F_PCoB_l8))
# </editor-fold>
# <editor-fold desc="E1_F_PCoB_m">
E1_F_PCoB_m1 = numpy.prod((math.pow((p * E1_C1m[0] + q * E1_C1m[1]), (weight[0] * weight[1] / (1 - weight[0]))),
                           math.pow((p * E1_C1m[0] + q * E1_C1m[2]), (weight[0] * weight[2] / (1 - weight[0]))),
                           math.pow((p * E1_C1m[0] + q * E1_C1m[3]), (weight[0] * weight[3] / (1 - weight[0]))),
                           math.pow((p * E1_C1m[0] + q * E1_C1m[4]), (weight[0] * weight[4] / (1 - weight[0]))),
                           math.pow((p * E1_C1m[0] + q * E1_C1m[5]), (weight[0] * weight[5] / (1 - weight[0]))),
                           math.pow((p * E1_C1m[0] + q * E1_C1m[6]), (weight[0] * weight[6] / (1 - weight[0]))),
                           math.pow((p * E1_C1m[0] + q * E1_C1m[7]), (weight[0] * weight[7] / (1 - weight[0])))))

E1_F_PCoB_m2 = numpy.prod((math.pow((p * E1_C1m[1] + q * E1_C1m[2]), (weight[1] * weight[2] / (1 - weight[1]))),
                           math.pow((p * E1_C1m[1] + q * E1_C1m[3]), (weight[1] * weight[3] / (1 - weight[1]))),
                           math.pow((p * E1_C1m[1] + q * E1_C1m[4]), (weight[1] * weight[4] / (1 - weight[1]))),
                           math.pow((p * E1_C1m[1] + q * E1_C1m[5]), (weight[1] * weight[5] / (1 - weight[1]))),
                           math.pow((p * E1_C1m[1] + q * E1_C1m[6]), (weight[1] * weight[6] / (1 - weight[1]))),
                           math.pow((p * E1_C1m[1] + q * E1_C1m[7]), (weight[1] * weight[7] / (1 - weight[1]))),
                           math.pow((p * E1_C1m[1] + q * E1_C1m[0]), (weight[1] * weight[0] / (1 - weight[1])))))

E1_F_PCoB_m3 = numpy.prod((math.pow((p * E1_C1m[2] + q * E1_C1m[3]), (weight[2] * weight[3] / (1 - weight[2]))),
                           math.pow((p * E1_C1m[2] + q * E1_C1m[4]), (weight[2] * weight[4] / (1 - weight[2]))),
                           math.pow((p * E1_C1m[2] + q * E1_C1m[5]), (weight[2] * weight[5] / (1 - weight[2]))),
                           math.pow((p * E1_C1m[2] + q * E1_C1m[6]), (weight[2] * weight[6] / (1 - weight[2]))),
                           math.pow((p * E1_C1m[2] + q * E1_C1m[7]), (weight[2] * weight[7] / (1 - weight[2]))),
                           math.pow((p * E1_C1m[2] + q * E1_C1m[0]), (weight[2] * weight[0] / (1 - weight[2]))),
                           math.pow((p * E1_C1m[2] + q * E1_C1m[1]), (weight[2] * weight[1] / (1 - weight[2])))))

E1_F_PCoB_m4 = numpy.prod((math.pow((p * E1_C1m[3] + q * E1_C1m[4]), (weight[3] * weight[4] / (1 - weight[3]))),
                           math.pow((p * E1_C1m[3] + q * E1_C1m[5]), (weight[3] * weight[5] / (1 - weight[3]))),
                           math.pow((p * E1_C1m[3] + q * E1_C1m[6]), (weight[3] * weight[6] / (1 - weight[3]))),
                           math.pow((p * E1_C1m[3] + q * E1_C1m[7]), (weight[3] * weight[7] / (1 - weight[3]))),
                           math.pow((p * E1_C1m[3] + q * E1_C1m[0]), (weight[3] * weight[0] / (1 - weight[3]))),
                           math.pow((p * E1_C1m[3] + q * E1_C1m[1]), (weight[3] * weight[1] / (1 - weight[3]))),
                           math.pow((p * E1_C1m[3] + q * E1_C1m[2]), (weight[3] * weight[2] / (1 - weight[3])))))

E1_F_PCoB_m5 = numpy.prod((math.pow((p * E1_C1m[4] + q * E1_C1m[5]), (weight[4] * weight[5] / (1 - weight[4]))),
                           math.pow((p * E1_C1m[4] + q * E1_C1m[6]), (weight[4] * weight[6] / (1 - weight[4]))),
                           math.pow((p * E1_C1m[4] + q * E1_C1m[7]), (weight[4] * weight[7] / (1 - weight[4]))),
                           math.pow((p * E1_C1m[4] + q * E1_C1m[0]), (weight[4] * weight[0] / (1 - weight[4]))),
                           math.pow((p * E1_C1m[4] + q * E1_C1m[1]), (weight[4] * weight[1] / (1 - weight[4]))),
                           math.pow((p * E1_C1m[4] + q * E1_C1m[2]), (weight[4] * weight[2] / (1 - weight[4]))),
                           math.pow((p * E1_C1m[4] + q * E1_C1m[3]), (weight[4] * weight[3] / (1 - weight[4])))))

E1_F_PCoB_m6 = numpy.prod((math.pow((p * E1_C1m[5] + q * E1_C1m[6]), (weight[5] * weight[6] / (1 - weight[5]))),
                           math.pow((p * E1_C1m[5] + q * E1_C1m[7]), (weight[5] * weight[7] / (1 - weight[5]))),
                           math.pow((p * E1_C1m[5] + q * E1_C1m[0]), (weight[5] * weight[0] / (1 - weight[5]))),
                           math.pow((p * E1_C1m[5] + q * E1_C1m[1]), (weight[5] * weight[1] / (1 - weight[5]))),
                           math.pow((p * E1_C1m[5] + q * E1_C1m[2]), (weight[5] * weight[2] / (1 - weight[5]))),
                           math.pow((p * E1_C1m[5] + q * E1_C1m[3]), (weight[5] * weight[3] / (1 - weight[5]))),
                           math.pow((p * E1_C1m[5] + q * E1_C1m[4]), (weight[5] * weight[4] / (1 - weight[5])))))

E1_F_PCoB_m7 = numpy.prod((math.pow((p * E1_C1m[6] + q * E1_C1m[7]), (weight[6] * weight[7] / (1 - weight[6]))),
                           math.pow((p * E1_C1m[6] + q * E1_C1m[0]), (weight[6] * weight[0] / (1 - weight[6]))),
                           math.pow((p * E1_C1m[6] + q * E1_C1m[1]), (weight[6] * weight[1] / (1 - weight[6]))),
                           math.pow((p * E1_C1m[6] + q * E1_C1m[2]), (weight[6] * weight[2] / (1 - weight[6]))),
                           math.pow((p * E1_C1m[6] + q * E1_C1m[3]), (weight[6] * weight[3] / (1 - weight[6]))),
                           math.pow((p * E1_C1m[6] + q * E1_C1m[4]), (weight[6] * weight[4] / (1 - weight[6]))),
                           math.pow((p * E1_C1m[6] + q * E1_C1m[5]), (weight[6] * weight[5] / (1 - weight[6])))))

E1_F_PCoB_m8 = numpy.prod((math.pow((p * E1_C1m[7] + q * E1_C1m[0]), (weight[7] * weight[0] / (1 - weight[7]))),
                           math.pow((p * E1_C1m[7] + q * E1_C1m[1]), (weight[7] * weight[1] / (1 - weight[7]))),
                           math.pow((p * E1_C1m[7] + q * E1_C1m[2]), (weight[7] * weight[2] / (1 - weight[7]))),
                           math.pow((p * E1_C1m[7] + q * E1_C1m[3]), (weight[7] * weight[3] / (1 - weight[7]))),
                           math.pow((p * E1_C1m[7] + q * E1_C1m[4]), (weight[7] * weight[4] / (1 - weight[7]))),
                           math.pow((p * E1_C1m[7] + q * E1_C1m[5]), (weight[7] * weight[5] / (1 - weight[7]))),
                           math.pow((p * E1_C1m[7] + q * E1_C1m[6]), (weight[7] * weight[6] / (1 - weight[7])))))
E1_F_PCoB_m = a * numpy.prod(
    (E1_F_PCoB_m1, E1_F_PCoB_m2, E1_F_PCoB_m3, E1_F_PCoB_m4, E1_F_PCoB_m5, E1_F_PCoB_m6, E1_F_PCoB_m7, E1_F_PCoB_m8))
# </editor-fold>
# <editor-fold desc="E1_F_PCoB_u">
E1_F_PCoB_u1 = numpy.prod((math.pow((p * E1_C1u[0] + q * E1_C1u[1]), (weight[0] * weight[1] / (1 - weight[0]))),
                           math.pow((p * E1_C1u[0] + q * E1_C1u[2]), (weight[0] * weight[2] / (1 - weight[0]))),
                           math.pow((p * E1_C1u[0] + q * E1_C1u[3]), (weight[0] * weight[3] / (1 - weight[0]))),
                           math.pow((p * E1_C1u[0] + q * E1_C1u[4]), (weight[0] * weight[4] / (1 - weight[0]))),
                           math.pow((p * E1_C1u[0] + q * E1_C1u[5]), (weight[0] * weight[5] / (1 - weight[0]))),
                           math.pow((p * E1_C1u[0] + q * E1_C1u[6]), (weight[0] * weight[6] / (1 - weight[0]))),
                           math.pow((p * E1_C1u[0] + q * E1_C1u[7]), (weight[0] * weight[7] / (1 - weight[0])))))

E1_F_PCoB_u2 = numpy.prod((math.pow((p * E1_C1u[1] + q * E1_C1u[2]), (weight[1] * weight[2] / (1 - weight[1]))),
                           math.pow((p * E1_C1u[1] + q * E1_C1u[3]), (weight[1] * weight[3] / (1 - weight[1]))),
                           math.pow((p * E1_C1u[1] + q * E1_C1u[4]), (weight[1] * weight[4] / (1 - weight[1]))),
                           math.pow((p * E1_C1u[1] + q * E1_C1u[5]), (weight[1] * weight[5] / (1 - weight[1]))),
                           math.pow((p * E1_C1u[1] + q * E1_C1u[6]), (weight[1] * weight[6] / (1 - weight[1]))),
                           math.pow((p * E1_C1u[1] + q * E1_C1u[7]), (weight[1] * weight[7] / (1 - weight[1]))),
                           math.pow((p * E1_C1u[1] + q * E1_C1u[0]), (weight[1] * weight[0] / (1 - weight[1])))))

E1_F_PCoB_u3 = numpy.prod((math.pow((p * E1_C1u[2] + q * E1_C1u[3]), (weight[2] * weight[3] / (1 - weight[2]))),
                           math.pow((p * E1_C1u[2] + q * E1_C1u[4]), (weight[2] * weight[4] / (1 - weight[2]))),
                           math.pow((p * E1_C1u[2] + q * E1_C1u[5]), (weight[2] * weight[5] / (1 - weight[2]))),
                           math.pow((p * E1_C1u[2] + q * E1_C1u[6]), (weight[2] * weight[6] / (1 - weight[2]))),
                           math.pow((p * E1_C1u[2] + q * E1_C1u[7]), (weight[2] * weight[7] / (1 - weight[2]))),
                           math.pow((p * E1_C1u[2] + q * E1_C1u[0]), (weight[2] * weight[0] / (1 - weight[2]))),
                           math.pow((p * E1_C1u[2] + q * E1_C1u[1]), (weight[2] * weight[1] / (1 - weight[2])))))

E1_F_PCoB_u4 = numpy.prod((math.pow((p * E1_C1u[3] + q * E1_C1u[4]), (weight[3] * weight[4] / (1 - weight[3]))),
                           math.pow((p * E1_C1u[3] + q * E1_C1u[5]), (weight[3] * weight[5] / (1 - weight[3]))),
                           math.pow((p * E1_C1u[3] + q * E1_C1u[6]), (weight[3] * weight[6] / (1 - weight[3]))),
                           math.pow((p * E1_C1u[3] + q * E1_C1u[7]), (weight[3] * weight[7] / (1 - weight[3]))),
                           math.pow((p * E1_C1u[3] + q * E1_C1u[0]), (weight[3] * weight[0] / (1 - weight[3]))),
                           math.pow((p * E1_C1u[3] + q * E1_C1u[1]), (weight[3] * weight[1] / (1 - weight[3]))),
                           math.pow((p * E1_C1u[3] + q * E1_C1u[2]), (weight[3] * weight[2] / (1 - weight[3])))))

E1_F_PCoB_u5 = numpy.prod((math.pow((p * E1_C1u[4] + q * E1_C1u[5]), (weight[4] * weight[5] / (1 - weight[4]))),
                           math.pow((p * E1_C1u[4] + q * E1_C1u[6]), (weight[4] * weight[6] / (1 - weight[4]))),
                           math.pow((p * E1_C1u[4] + q * E1_C1u[7]), (weight[4] * weight[7] / (1 - weight[4]))),
                           math.pow((p * E1_C1u[4] + q * E1_C1u[0]), (weight[4] * weight[0] / (1 - weight[4]))),
                           math.pow((p * E1_C1u[4] + q * E1_C1u[1]), (weight[4] * weight[1] / (1 - weight[4]))),
                           math.pow((p * E1_C1u[4] + q * E1_C1u[2]), (weight[4] * weight[2] / (1 - weight[4]))),
                           math.pow((p * E1_C1u[4] + q * E1_C1u[3]), (weight[4] * weight[3] / (1 - weight[4])))))

E1_F_PCoB_u6 = numpy.prod((math.pow((p * E1_C1u[5] + q * E1_C1u[6]), (weight[5] * weight[6] / (1 - weight[5]))),
                           math.pow((p * E1_C1u[5] + q * E1_C1u[7]), (weight[5] * weight[7] / (1 - weight[5]))),
                           math.pow((p * E1_C1u[5] + q * E1_C1u[0]), (weight[5] * weight[0] / (1 - weight[5]))),
                           math.pow((p * E1_C1u[5] + q * E1_C1u[1]), (weight[5] * weight[1] / (1 - weight[5]))),
                           math.pow((p * E1_C1u[5] + q * E1_C1u[2]), (weight[5] * weight[2] / (1 - weight[5]))),
                           math.pow((p * E1_C1u[5] + q * E1_C1u[3]), (weight[5] * weight[3] / (1 - weight[5]))),
                           math.pow((p * E1_C1u[5] + q * E1_C1u[4]), (weight[5] * weight[4] / (1 - weight[5])))))

E1_F_PCoB_u7 = numpy.prod((math.pow((p * E1_C1u[6] + q * E1_C1u[7]), (weight[6] * weight[7] / (1 - weight[6]))),
                           math.pow((p * E1_C1u[6] + q * E1_C1u[0]), (weight[6] * weight[0] / (1 - weight[6]))),
                           math.pow((p * E1_C1u[6] + q * E1_C1u[1]), (weight[6] * weight[1] / (1 - weight[6]))),
                           math.pow((p * E1_C1u[6] + q * E1_C1u[2]), (weight[6] * weight[2] / (1 - weight[6]))),
                           math.pow((p * E1_C1u[6] + q * E1_C1u[3]), (weight[6] * weight[3] / (1 - weight[6]))),
                           math.pow((p * E1_C1u[6] + q * E1_C1u[4]), (weight[6] * weight[4] / (1 - weight[6]))),
                           math.pow((p * E1_C1u[6] + q * E1_C1u[5]), (weight[6] * weight[5] / (1 - weight[6])))))

E1_F_PCoB_u8 = numpy.prod((math.pow((p * E1_C1u[7] + q * E1_C1u[0]), (weight[7] * weight[0] / (1 - weight[7]))),
                           math.pow((p * E1_C1u[7] + q * E1_C1u[1]), (weight[7] * weight[1] / (1 - weight[7]))),
                           math.pow((p * E1_C1u[7] + q * E1_C1u[2]), (weight[7] * weight[2] / (1 - weight[7]))),
                           math.pow((p * E1_C1u[7] + q * E1_C1u[3]), (weight[7] * weight[3] / (1 - weight[7]))),
                           math.pow((p * E1_C1u[7] + q * E1_C1u[4]), (weight[7] * weight[4] / (1 - weight[7]))),
                           math.pow((p * E1_C1u[7] + q * E1_C1u[5]), (weight[7] * weight[5] / (1 - weight[7]))),
                           math.pow((p * E1_C1u[7] + q * E1_C1u[6]), (weight[7] * weight[6] / (1 - weight[7])))))
E1_F_PCoB_u = a * numpy.prod(
    (E1_F_PCoB_u1, E1_F_PCoB_u2, E1_F_PCoB_u3, E1_F_PCoB_u4, E1_F_PCoB_u5, E1_F_PCoB_u6, E1_F_PCoB_u7, E1_F_PCoB_u8))
# </editor-fold>
# print(E1_F_PCoB_l)
# print(E1_F_PCoB_m)
# print(E1_F_PCoB_u)
E1_PCoB = (E1_F_PCoB_l + 4 * E1_F_PCoB_m + E1_F_PCoB_u) / 6

# E2
# <editor-fold desc="E2_F_SCoB_l">
E2_F_SCoB_l1 = sum(
    ((((weight[0] * weight[1] / (1 - weight[0])) * math.pow(E2_C1l[0], p) * math.pow(E2_C1l[1], q)),
      ((weight[0] * weight[2] / (1 - weight[0])) * math.pow(E2_C1l[0], p) * math.pow(E2_C1l[2], q)),
      ((weight[0] * weight[3] / (1 - weight[0])) * math.pow(E2_C1l[0], p) * math.pow(E2_C1l[3], q)),
      ((weight[0] * weight[4] / (1 - weight[0])) * math.pow(E2_C1l[0], p) * math.pow(E2_C1l[4], q)),
      ((weight[0] * weight[5] / (1 - weight[0])) * math.pow(E2_C1l[0], p) * math.pow(E2_C1l[5], q)),
      ((weight[0] * weight[6] / (1 - weight[0])) * math.pow(E2_C1l[0], p) * math.pow(E2_C1l[6], q)),
      ((weight[0] * weight[7] / (1 - weight[0])) * math.pow(E2_C1l[0], p) * math.pow(E2_C1l[2], q)))))

E2_F_SCoB_l2 = sum(
    ((((weight[1] * weight[2] / (1 - weight[1])) * math.pow(E2_C1l[1], p) * math.pow(E2_C1l[2], q)),
      ((weight[1] * weight[3] / (1 - weight[1])) * math.pow(E2_C1l[1], p) * math.pow(E2_C1l[3], q)),
      ((weight[1] * weight[4] / (1 - weight[1])) * math.pow(E2_C1l[1], p) * math.pow(E2_C1l[4], q)),
      ((weight[1] * weight[5] / (1 - weight[1])) * math.pow(E2_C1l[1], p) * math.pow(E2_C1l[5], q)),
      ((weight[1] * weight[6] / (1 - weight[1])) * math.pow(E2_C1l[1], p) * math.pow(E2_C1l[6], q)),
      ((weight[1] * weight[7] / (1 - weight[1])) * math.pow(E2_C1l[1], p) * math.pow(E2_C1l[7], q)),
      ((weight[1] * weight[0] / (1 - weight[1])) * math.pow(E2_C1l[1], p) * math.pow(E2_C1l[0], q)))))

E2_F_SCoB_l3 = sum(
    ((((weight[2] * weight[3] / (1 - weight[2])) * math.pow(E2_C1l[2], p) * math.pow(E2_C1l[3], q)),
      ((weight[2] * weight[4] / (1 - weight[2])) * math.pow(E2_C1l[2], p) * math.pow(E2_C1l[4], q)),
      ((weight[2] * weight[5] / (1 - weight[2])) * math.pow(E2_C1l[2], p) * math.pow(E2_C1l[5], q)),
      ((weight[2] * weight[6] / (1 - weight[2])) * math.pow(E2_C1l[2], p) * math.pow(E2_C1l[6], q)),
      ((weight[2] * weight[7] / (1 - weight[2])) * math.pow(E2_C1l[2], p) * math.pow(E2_C1l[7], q)),
      ((weight[2] * weight[0] / (1 - weight[2])) * math.pow(E2_C1l[2], p) * math.pow(E2_C1l[0], q)),
      ((weight[2] * weight[1] / (1 - weight[2])) * math.pow(E2_C1l[2], p) * math.pow(E2_C1l[1], q)))))

E2_F_SCoB_l4 = sum(
    ((((weight[3] * weight[4] / (1 - weight[3])) * math.pow(E2_C1l[3], p) * math.pow(E2_C1l[4], q)),
      ((weight[3] * weight[5] / (1 - weight[3])) * math.pow(E2_C1l[3], p) * math.pow(E2_C1l[5], q)),
      ((weight[3] * weight[6] / (1 - weight[3])) * math.pow(E2_C1l[3], p) * math.pow(E2_C1l[6], q)),
      ((weight[3] * weight[7] / (1 - weight[3])) * math.pow(E2_C1l[3], p) * math.pow(E2_C1l[7], q)),
      ((weight[3] * weight[0] / (1 - weight[3])) * math.pow(E2_C1l[3], p) * math.pow(E2_C1l[0], q)),
      ((weight[3] * weight[1] / (1 - weight[3])) * math.pow(E2_C1l[3], p) * math.pow(E2_C1l[1], q)),
      ((weight[3] * weight[2] / (1 - weight[3])) * math.pow(E2_C1l[3], p) * math.pow(E2_C1l[2], q)))))

E2_F_SCoB_l5 = sum(
    ((((weight[4] * weight[5] / (1 - weight[4])) * math.pow(E2_C1l[4], p) * math.pow(E2_C1l[5], q)),
      ((weight[4] * weight[6] / (1 - weight[4])) * math.pow(E2_C1l[4], p) * math.pow(E2_C1l[6], q)),
      ((weight[4] * weight[7] / (1 - weight[4])) * math.pow(E2_C1l[4], p) * math.pow(E2_C1l[7], q)),
      ((weight[4] * weight[0] / (1 - weight[4])) * math.pow(E2_C1l[4], p) * math.pow(E2_C1l[0], q)),
      ((weight[4] * weight[1] / (1 - weight[4])) * math.pow(E2_C1l[4], p) * math.pow(E2_C1l[1], q)),
      ((weight[4] * weight[2] / (1 - weight[4])) * math.pow(E2_C1l[4], p) * math.pow(E2_C1l[2], q)),
      ((weight[4] * weight[3] / (1 - weight[4])) * math.pow(E2_C1l[4], p) * math.pow(E2_C1l[3], q)))))

E2_F_SCoB_l6 = sum(
    ((((weight[5] * weight[6] / (1 - weight[5])) * math.pow(E2_C1l[5], p) * math.pow(E2_C1l[6], q)),
      ((weight[5] * weight[7] / (1 - weight[5])) * math.pow(E2_C1l[5], p) * math.pow(E2_C1l[7], q)),
      ((weight[5] * weight[0] / (1 - weight[5])) * math.pow(E2_C1l[5], p) * math.pow(E2_C1l[0], q)),
      ((weight[5] * weight[1] / (1 - weight[5])) * math.pow(E2_C1l[5], p) * math.pow(E2_C1l[1], q)),
      ((weight[5] * weight[2] / (1 - weight[5])) * math.pow(E2_C1l[5], p) * math.pow(E2_C1l[2], q)),
      ((weight[5] * weight[3] / (1 - weight[5])) * math.pow(E2_C1l[5], p) * math.pow(E2_C1l[3], q)),
      ((weight[5] * weight[4] / (1 - weight[5])) * math.pow(E2_C1l[5], p) * math.pow(E2_C1l[4], q)))))

E2_F_SCoB_l7 = sum(
    ((((weight[6] * weight[7] / (1 - weight[6])) * math.pow(E2_C1l[6], p) * math.pow(E2_C1l[7], q)),
      ((weight[6] * weight[0] / (1 - weight[6])) * math.pow(E2_C1l[6], p) * math.pow(E2_C1l[0], q)),
      ((weight[6] * weight[1] / (1 - weight[6])) * math.pow(E2_C1l[6], p) * math.pow(E2_C1l[1], q)),
      ((weight[6] * weight[2] / (1 - weight[6])) * math.pow(E2_C1l[6], p) * math.pow(E2_C1l[2], q)),
      ((weight[6] * weight[3] / (1 - weight[6])) * math.pow(E2_C1l[6], p) * math.pow(E2_C1l[3], q)),
      ((weight[6] * weight[4] / (1 - weight[6])) * math.pow(E2_C1l[6], p) * math.pow(E2_C1l[4], q)),
      ((weight[6] * weight[5] / (1 - weight[6])) * math.pow(E2_C1l[6], p) * math.pow(E2_C1l[5], q)))))

E2_F_SCoB_l8 = sum(
    ((((weight[7] * weight[0] / (1 - weight[7])) * math.pow(E2_C1l[7], p) * math.pow(E2_C1l[0], q)),
      ((weight[7] * weight[1] / (1 - weight[7])) * math.pow(E2_C1l[7], p) * math.pow(E2_C1l[1], q)),
      ((weight[7] * weight[2] / (1 - weight[7])) * math.pow(E2_C1l[7], p) * math.pow(E2_C1l[2], q)),
      ((weight[7] * weight[3] / (1 - weight[7])) * math.pow(E2_C1l[7], p) * math.pow(E2_C1l[3], q)),
      ((weight[7] * weight[4] / (1 - weight[7])) * math.pow(E2_C1l[7], p) * math.pow(E2_C1l[4], q)),
      ((weight[7] * weight[5] / (1 - weight[7])) * math.pow(E2_C1l[7], p) * math.pow(E2_C1l[5], q)),
      ((weight[7] * weight[6] / (1 - weight[7])) * math.pow(E2_C1l[7], p) * math.pow(E2_C1l[6], q)))))
E2_F_SCoB_l = pow(sum(
    (E2_F_SCoB_l1, E2_F_SCoB_l2, E2_F_SCoB_l3, E2_F_SCoB_l4, E2_F_SCoB_l5, E2_F_SCoB_l6, E2_F_SCoB_l7, E2_F_SCoB_l8)),
    a)
# </editor-fold>
# <editor-fold desc="E2_F_SCoB_m">
E2_F_SCoB_m1 = sum(
    ((((weight[0] * weight[1] / (1 - weight[0])) * math.pow(E2_C1m[0], p) * math.pow(E2_C1m[1], q)),
      ((weight[0] * weight[2] / (1 - weight[0])) * math.pow(E2_C1m[0], p) * math.pow(E2_C1m[2], q)),
      ((weight[0] * weight[3] / (1 - weight[0])) * math.pow(E2_C1m[0], p) * math.pow(E2_C1m[3], q)),
      ((weight[0] * weight[4] / (1 - weight[0])) * math.pow(E2_C1m[0], p) * math.pow(E2_C1m[4], q)),
      ((weight[0] * weight[5] / (1 - weight[0])) * math.pow(E2_C1m[0], p) * math.pow(E2_C1m[5], q)),
      ((weight[0] * weight[6] / (1 - weight[0])) * math.pow(E2_C1m[0], p) * math.pow(E2_C1m[6], q)),
      ((weight[0] * weight[7] / (1 - weight[0])) * math.pow(E2_C1m[0], p) * math.pow(E2_C1m[2], q)))))

E2_F_SCoB_m2 = sum(
    ((((weight[1] * weight[2] / (1 - weight[1])) * math.pow(E2_C1m[1], p) * math.pow(E2_C1m[2], q)),
      ((weight[1] * weight[3] / (1 - weight[1])) * math.pow(E2_C1m[1], p) * math.pow(E2_C1m[3], q)),
      ((weight[1] * weight[4] / (1 - weight[1])) * math.pow(E2_C1m[1], p) * math.pow(E2_C1m[4], q)),
      ((weight[1] * weight[5] / (1 - weight[1])) * math.pow(E2_C1m[1], p) * math.pow(E2_C1m[5], q)),
      ((weight[1] * weight[6] / (1 - weight[1])) * math.pow(E2_C1m[1], p) * math.pow(E2_C1m[6], q)),
      ((weight[1] * weight[7] / (1 - weight[1])) * math.pow(E2_C1m[1], p) * math.pow(E2_C1m[7], q)),
      ((weight[1] * weight[0] / (1 - weight[1])) * math.pow(E2_C1m[1], p) * math.pow(E2_C1m[0], q)))))

E2_F_SCoB_m3 = sum(
    ((((weight[2] * weight[3] / (1 - weight[2])) * math.pow(E2_C1m[2], p) * math.pow(E2_C1m[3], q)),
      ((weight[2] * weight[4] / (1 - weight[2])) * math.pow(E2_C1m[2], p) * math.pow(E2_C1m[4], q)),
      ((weight[2] * weight[5] / (1 - weight[2])) * math.pow(E2_C1m[2], p) * math.pow(E2_C1m[5], q)),
      ((weight[2] * weight[6] / (1 - weight[2])) * math.pow(E2_C1m[2], p) * math.pow(E2_C1m[6], q)),
      ((weight[2] * weight[7] / (1 - weight[2])) * math.pow(E2_C1m[2], p) * math.pow(E2_C1m[7], q)),
      ((weight[2] * weight[0] / (1 - weight[2])) * math.pow(E2_C1m[2], p) * math.pow(E2_C1m[0], q)),
      ((weight[2] * weight[1] / (1 - weight[2])) * math.pow(E2_C1m[2], p) * math.pow(E2_C1m[1], q)))))

E2_F_SCoB_m4 = sum(
    ((((weight[3] * weight[4] / (1 - weight[3])) * math.pow(E2_C1m[3], p) * math.pow(E2_C1m[4], q)),
      ((weight[3] * weight[5] / (1 - weight[3])) * math.pow(E2_C1m[3], p) * math.pow(E2_C1m[5], q)),
      ((weight[3] * weight[6] / (1 - weight[3])) * math.pow(E2_C1m[3], p) * math.pow(E2_C1m[6], q)),
      ((weight[3] * weight[7] / (1 - weight[3])) * math.pow(E2_C1m[3], p) * math.pow(E2_C1m[7], q)),
      ((weight[3] * weight[0] / (1 - weight[3])) * math.pow(E2_C1m[3], p) * math.pow(E2_C1m[0], q)),
      ((weight[3] * weight[1] / (1 - weight[3])) * math.pow(E2_C1m[3], p) * math.pow(E2_C1m[1], q)),
      ((weight[3] * weight[2] / (1 - weight[3])) * math.pow(E2_C1m[3], p) * math.pow(E2_C1m[2], q)))))

E2_F_SCoB_m5 = sum(
    ((((weight[4] * weight[5] / (1 - weight[4])) * math.pow(E2_C1m[4], p) * math.pow(E2_C1m[5], q)),
      ((weight[4] * weight[6] / (1 - weight[4])) * math.pow(E2_C1m[4], p) * math.pow(E2_C1m[6], q)),
      ((weight[4] * weight[7] / (1 - weight[4])) * math.pow(E2_C1m[4], p) * math.pow(E2_C1m[7], q)),
      ((weight[4] * weight[0] / (1 - weight[4])) * math.pow(E2_C1m[4], p) * math.pow(E2_C1m[0], q)),
      ((weight[4] * weight[1] / (1 - weight[4])) * math.pow(E2_C1m[4], p) * math.pow(E2_C1m[1], q)),
      ((weight[4] * weight[2] / (1 - weight[4])) * math.pow(E2_C1m[4], p) * math.pow(E2_C1m[2], q)),
      ((weight[4] * weight[3] / (1 - weight[4])) * math.pow(E2_C1m[4], p) * math.pow(E2_C1m[3], q)))))

E2_F_SCoB_m6 = sum(
    ((((weight[5] * weight[6] / (1 - weight[5])) * math.pow(E2_C1m[5], p) * math.pow(E2_C1m[6], q)),
      ((weight[5] * weight[7] / (1 - weight[5])) * math.pow(E2_C1m[5], p) * math.pow(E2_C1m[7], q)),
      ((weight[5] * weight[0] / (1 - weight[5])) * math.pow(E2_C1m[5], p) * math.pow(E2_C1m[0], q)),
      ((weight[5] * weight[1] / (1 - weight[5])) * math.pow(E2_C1m[5], p) * math.pow(E2_C1m[1], q)),
      ((weight[5] * weight[2] / (1 - weight[5])) * math.pow(E2_C1m[5], p) * math.pow(E2_C1m[2], q)),
      ((weight[5] * weight[3] / (1 - weight[5])) * math.pow(E2_C1m[5], p) * math.pow(E2_C1m[3], q)),
      ((weight[5] * weight[4] / (1 - weight[5])) * math.pow(E2_C1m[5], p) * math.pow(E2_C1m[4], q)))))

E2_F_SCoB_m7 = sum(
    ((((weight[6] * weight[7] / (1 - weight[6])) * math.pow(E2_C1m[6], p) * math.pow(E2_C1m[7], q)),
      ((weight[6] * weight[0] / (1 - weight[6])) * math.pow(E2_C1m[6], p) * math.pow(E2_C1m[0], q)),
      ((weight[6] * weight[1] / (1 - weight[6])) * math.pow(E2_C1m[6], p) * math.pow(E2_C1m[1], q)),
      ((weight[6] * weight[2] / (1 - weight[6])) * math.pow(E2_C1m[6], p) * math.pow(E2_C1m[2], q)),
      ((weight[6] * weight[3] / (1 - weight[6])) * math.pow(E2_C1m[6], p) * math.pow(E2_C1m[3], q)),
      ((weight[6] * weight[4] / (1 - weight[6])) * math.pow(E2_C1m[6], p) * math.pow(E2_C1m[4], q)),
      ((weight[6] * weight[5] / (1 - weight[6])) * math.pow(E2_C1m[6], p) * math.pow(E2_C1m[5], q)))))

E2_F_SCoB_m8 = sum(
    ((((weight[7] * weight[0] / (1 - weight[7])) * math.pow(E2_C1m[7], p) * math.pow(E2_C1m[0], q)),
      ((weight[7] * weight[1] / (1 - weight[7])) * math.pow(E2_C1m[7], p) * math.pow(E2_C1m[1], q)),
      ((weight[7] * weight[2] / (1 - weight[7])) * math.pow(E2_C1m[7], p) * math.pow(E2_C1m[2], q)),
      ((weight[7] * weight[3] / (1 - weight[7])) * math.pow(E2_C1m[7], p) * math.pow(E2_C1m[3], q)),
      ((weight[7] * weight[4] / (1 - weight[7])) * math.pow(E2_C1m[7], p) * math.pow(E2_C1m[4], q)),
      ((weight[7] * weight[5] / (1 - weight[7])) * math.pow(E2_C1m[7], p) * math.pow(E2_C1m[5], q)),
      ((weight[7] * weight[6] / (1 - weight[7])) * math.pow(E2_C1m[7], p) * math.pow(E2_C1m[6], q)))))
E2_F_SCoB_m = pow(sum(
    (E2_F_SCoB_m1, E2_F_SCoB_m2, E2_F_SCoB_m3, E2_F_SCoB_m4, E2_F_SCoB_m5, E2_F_SCoB_m6, E2_F_SCoB_m7, E2_F_SCoB_m8)),
    a)
# </editor-fold>
# <editor-fold desc="E2_F_SCoB_u">
E2_F_SCoB_u1 = sum(
    ((((weight[0] * weight[1] / (1 - weight[0])) * math.pow(E2_C1u[0], p) * math.pow(E2_C1u[1], q)),
      ((weight[0] * weight[2] / (1 - weight[0])) * math.pow(E2_C1u[0], p) * math.pow(E2_C1u[2], q)),
      ((weight[0] * weight[3] / (1 - weight[0])) * math.pow(E2_C1u[0], p) * math.pow(E2_C1u[3], q)),
      ((weight[0] * weight[4] / (1 - weight[0])) * math.pow(E2_C1u[0], p) * math.pow(E2_C1u[4], q)),
      ((weight[0] * weight[5] / (1 - weight[0])) * math.pow(E2_C1u[0], p) * math.pow(E2_C1u[5], q)),
      ((weight[0] * weight[6] / (1 - weight[0])) * math.pow(E2_C1u[0], p) * math.pow(E2_C1u[6], q)),
      ((weight[0] * weight[7] / (1 - weight[0])) * math.pow(E2_C1u[0], p) * math.pow(E2_C1u[2], q)))))

E2_F_SCoB_u2 = sum(
    ((((weight[1] * weight[2] / (1 - weight[1])) * math.pow(E2_C1u[1], p) * math.pow(E2_C1u[2], q)),
      ((weight[1] * weight[3] / (1 - weight[1])) * math.pow(E2_C1u[1], p) * math.pow(E2_C1u[3], q)),
      ((weight[1] * weight[4] / (1 - weight[1])) * math.pow(E2_C1u[1], p) * math.pow(E2_C1u[4], q)),
      ((weight[1] * weight[5] / (1 - weight[1])) * math.pow(E2_C1u[1], p) * math.pow(E2_C1u[5], q)),
      ((weight[1] * weight[6] / (1 - weight[1])) * math.pow(E2_C1u[1], p) * math.pow(E2_C1u[6], q)),
      ((weight[1] * weight[7] / (1 - weight[1])) * math.pow(E2_C1u[1], p) * math.pow(E2_C1u[7], q)),
      ((weight[1] * weight[0] / (1 - weight[1])) * math.pow(E2_C1u[1], p) * math.pow(E2_C1u[0], q)))))

E2_F_SCoB_u3 = sum(
    ((((weight[2] * weight[3] / (1 - weight[2])) * math.pow(E2_C1u[2], p) * math.pow(E2_C1u[3], q)),
      ((weight[2] * weight[4] / (1 - weight[2])) * math.pow(E2_C1u[2], p) * math.pow(E2_C1u[4], q)),
      ((weight[2] * weight[5] / (1 - weight[2])) * math.pow(E2_C1u[2], p) * math.pow(E2_C1u[5], q)),
      ((weight[2] * weight[6] / (1 - weight[2])) * math.pow(E2_C1u[2], p) * math.pow(E2_C1u[6], q)),
      ((weight[2] * weight[7] / (1 - weight[2])) * math.pow(E2_C1u[2], p) * math.pow(E2_C1u[7], q)),
      ((weight[2] * weight[0] / (1 - weight[2])) * math.pow(E2_C1u[2], p) * math.pow(E2_C1u[0], q)),
      ((weight[2] * weight[1] / (1 - weight[2])) * math.pow(E2_C1u[2], p) * math.pow(E2_C1u[1], q)))))

E2_F_SCoB_u4 = sum(
    ((((weight[3] * weight[4] / (1 - weight[3])) * math.pow(E2_C1u[3], p) * math.pow(E2_C1u[4], q)),
      ((weight[3] * weight[5] / (1 - weight[3])) * math.pow(E2_C1u[3], p) * math.pow(E2_C1u[5], q)),
      ((weight[3] * weight[6] / (1 - weight[3])) * math.pow(E2_C1u[3], p) * math.pow(E2_C1u[6], q)),
      ((weight[3] * weight[7] / (1 - weight[3])) * math.pow(E2_C1u[3], p) * math.pow(E2_C1u[7], q)),
      ((weight[3] * weight[0] / (1 - weight[3])) * math.pow(E2_C1u[3], p) * math.pow(E2_C1u[0], q)),
      ((weight[3] * weight[1] / (1 - weight[3])) * math.pow(E2_C1u[3], p) * math.pow(E2_C1u[1], q)),
      ((weight[3] * weight[2] / (1 - weight[3])) * math.pow(E2_C1u[3], p) * math.pow(E2_C1u[2], q)))))

E2_F_SCoB_u5 = sum(
    ((((weight[4] * weight[5] / (1 - weight[4])) * math.pow(E2_C1u[4], p) * math.pow(E2_C1u[5], q)),
      ((weight[4] * weight[6] / (1 - weight[4])) * math.pow(E2_C1u[4], p) * math.pow(E2_C1u[6], q)),
      ((weight[4] * weight[7] / (1 - weight[4])) * math.pow(E2_C1u[4], p) * math.pow(E2_C1u[7], q)),
      ((weight[4] * weight[0] / (1 - weight[4])) * math.pow(E2_C1u[4], p) * math.pow(E2_C1u[0], q)),
      ((weight[4] * weight[1] / (1 - weight[4])) * math.pow(E2_C1u[4], p) * math.pow(E2_C1u[1], q)),
      ((weight[4] * weight[2] / (1 - weight[4])) * math.pow(E2_C1u[4], p) * math.pow(E2_C1u[2], q)),
      ((weight[4] * weight[3] / (1 - weight[4])) * math.pow(E2_C1u[4], p) * math.pow(E2_C1u[3], q)))))

E2_F_SCoB_u6 = sum(
    ((((weight[5] * weight[6] / (1 - weight[5])) * math.pow(E2_C1u[5], p) * math.pow(E2_C1u[6], q)),
      ((weight[5] * weight[7] / (1 - weight[5])) * math.pow(E2_C1u[5], p) * math.pow(E2_C1u[7], q)),
      ((weight[5] * weight[0] / (1 - weight[5])) * math.pow(E2_C1u[5], p) * math.pow(E2_C1u[0], q)),
      ((weight[5] * weight[1] / (1 - weight[5])) * math.pow(E2_C1u[5], p) * math.pow(E2_C1u[1], q)),
      ((weight[5] * weight[2] / (1 - weight[5])) * math.pow(E2_C1u[5], p) * math.pow(E2_C1u[2], q)),
      ((weight[5] * weight[3] / (1 - weight[5])) * math.pow(E2_C1u[5], p) * math.pow(E2_C1u[3], q)),
      ((weight[5] * weight[4] / (1 - weight[5])) * math.pow(E2_C1u[5], p) * math.pow(E2_C1u[4], q)))))

E2_F_SCoB_u7 = sum(
    ((((weight[6] * weight[7] / (1 - weight[6])) * math.pow(E2_C1u[6], p) * math.pow(E2_C1u[7], q)),
      ((weight[6] * weight[0] / (1 - weight[6])) * math.pow(E2_C1u[6], p) * math.pow(E2_C1u[0], q)),
      ((weight[6] * weight[1] / (1 - weight[6])) * math.pow(E2_C1u[6], p) * math.pow(E2_C1u[1], q)),
      ((weight[6] * weight[2] / (1 - weight[6])) * math.pow(E2_C1u[6], p) * math.pow(E2_C1u[2], q)),
      ((weight[6] * weight[3] / (1 - weight[6])) * math.pow(E2_C1u[6], p) * math.pow(E2_C1u[3], q)),
      ((weight[6] * weight[4] / (1 - weight[6])) * math.pow(E2_C1u[6], p) * math.pow(E2_C1u[4], q)),
      ((weight[6] * weight[5] / (1 - weight[6])) * math.pow(E2_C1u[6], p) * math.pow(E2_C1u[5], q)))))

E2_F_SCoB_u8 = sum(
    ((((weight[7] * weight[0] / (1 - weight[7])) * math.pow(E2_C1u[7], p) * math.pow(E2_C1u[0], q)),
      ((weight[7] * weight[1] / (1 - weight[7])) * math.pow(E2_C1u[7], p) * math.pow(E2_C1u[1], q)),
      ((weight[7] * weight[2] / (1 - weight[7])) * math.pow(E2_C1u[7], p) * math.pow(E2_C1u[2], q)),
      ((weight[7] * weight[3] / (1 - weight[7])) * math.pow(E2_C1u[7], p) * math.pow(E2_C1u[3], q)),
      ((weight[7] * weight[4] / (1 - weight[7])) * math.pow(E2_C1u[7], p) * math.pow(E2_C1u[4], q)),
      ((weight[7] * weight[5] / (1 - weight[7])) * math.pow(E2_C1u[7], p) * math.pow(E2_C1u[5], q)),
      ((weight[7] * weight[6] / (1 - weight[7])) * math.pow(E2_C1u[7], p) * math.pow(E2_C1u[6], q)))))
E2_F_SCoB_u = pow(sum(
    (E2_F_SCoB_u1, E2_F_SCoB_u2, E2_F_SCoB_u3, E2_F_SCoB_u4, E2_F_SCoB_u5, E2_F_SCoB_u6, E2_F_SCoB_u7, E2_F_SCoB_u8)),
    a)
# </editor-fold>
# print(E2_F_SCoB_l)
# print(E2_F_SCoB_m)
# print(E2_F_SCoB_u)
E2_SCoB = (E2_F_SCoB_l + 4 * E2_F_SCoB_m + E2_F_SCoB_u) / 6

# <editor-fold desc="E2_F_PCoB_l">
E2_F_PCoB_l1 = numpy.prod((math.pow((p * E2_C1l[0] + q * E2_C1l[1]), (weight[0] * weight[1] / (1 - weight[0]))),
                           math.pow((p * E2_C1l[0] + q * E2_C1l[2]), (weight[0] * weight[2] / (1 - weight[0]))),
                           math.pow((p * E2_C1l[0] + q * E2_C1l[3]), (weight[0] * weight[3] / (1 - weight[0]))),
                           math.pow((p * E2_C1l[0] + q * E2_C1l[4]), (weight[0] * weight[4] / (1 - weight[0]))),
                           math.pow((p * E2_C1l[0] + q * E2_C1l[5]), (weight[0] * weight[5] / (1 - weight[0]))),
                           math.pow((p * E2_C1l[0] + q * E2_C1l[6]), (weight[0] * weight[6] / (1 - weight[0]))),
                           math.pow((p * E2_C1l[0] + q * E2_C1l[7]), (weight[0] * weight[7] / (1 - weight[0])))))

E2_F_PCoB_l2 = numpy.prod((math.pow((p * E2_C1l[1] + q * E2_C1l[2]), (weight[1] * weight[2] / (1 - weight[1]))),
                           math.pow((p * E2_C1l[1] + q * E2_C1l[3]), (weight[1] * weight[3] / (1 - weight[1]))),
                           math.pow((p * E2_C1l[1] + q * E2_C1l[4]), (weight[1] * weight[4] / (1 - weight[1]))),
                           math.pow((p * E2_C1l[1] + q * E2_C1l[5]), (weight[1] * weight[5] / (1 - weight[1]))),
                           math.pow((p * E2_C1l[1] + q * E2_C1l[6]), (weight[1] * weight[6] / (1 - weight[1]))),
                           math.pow((p * E2_C1l[1] + q * E2_C1l[7]), (weight[1] * weight[7] / (1 - weight[1]))),
                           math.pow((p * E2_C1l[1] + q * E2_C1l[0]), (weight[1] * weight[0] / (1 - weight[1])))))

E2_F_PCoB_l3 = numpy.prod((math.pow((p * E2_C1l[2] + q * E2_C1l[3]), (weight[2] * weight[3] / (1 - weight[2]))),
                           math.pow((p * E2_C1l[2] + q * E2_C1l[4]), (weight[2] * weight[4] / (1 - weight[2]))),
                           math.pow((p * E2_C1l[2] + q * E2_C1l[5]), (weight[2] * weight[5] / (1 - weight[2]))),
                           math.pow((p * E2_C1l[2] + q * E2_C1l[6]), (weight[2] * weight[6] / (1 - weight[2]))),
                           math.pow((p * E2_C1l[2] + q * E2_C1l[7]), (weight[2] * weight[7] / (1 - weight[2]))),
                           math.pow((p * E2_C1l[2] + q * E2_C1l[0]), (weight[2] * weight[0] / (1 - weight[2]))),
                           math.pow((p * E2_C1l[2] + q * E2_C1l[1]), (weight[2] * weight[1] / (1 - weight[2])))))

E2_F_PCoB_l4 = numpy.prod((math.pow((p * E2_C1l[3] + q * E2_C1l[4]), (weight[3] * weight[4] / (1 - weight[3]))),
                           math.pow((p * E2_C1l[3] + q * E2_C1l[5]), (weight[3] * weight[5] / (1 - weight[3]))),
                           math.pow((p * E2_C1l[3] + q * E2_C1l[6]), (weight[3] * weight[6] / (1 - weight[3]))),
                           math.pow((p * E2_C1l[3] + q * E2_C1l[7]), (weight[3] * weight[7] / (1 - weight[3]))),
                           math.pow((p * E2_C1l[3] + q * E2_C1l[0]), (weight[3] * weight[0] / (1 - weight[3]))),
                           math.pow((p * E2_C1l[3] + q * E2_C1l[1]), (weight[3] * weight[1] / (1 - weight[3]))),
                           math.pow((p * E2_C1l[3] + q * E2_C1l[2]), (weight[3] * weight[2] / (1 - weight[3])))))

E2_F_PCoB_l5 = numpy.prod((math.pow((p * E2_C1l[4] + q * E2_C1l[5]), (weight[4] * weight[5] / (1 - weight[4]))),
                           math.pow((p * E2_C1l[4] + q * E2_C1l[6]), (weight[4] * weight[6] / (1 - weight[4]))),
                           math.pow((p * E2_C1l[4] + q * E2_C1l[7]), (weight[4] * weight[7] / (1 - weight[4]))),
                           math.pow((p * E2_C1l[4] + q * E2_C1l[0]), (weight[4] * weight[0] / (1 - weight[4]))),
                           math.pow((p * E2_C1l[4] + q * E2_C1l[1]), (weight[4] * weight[1] / (1 - weight[4]))),
                           math.pow((p * E2_C1l[4] + q * E2_C1l[2]), (weight[4] * weight[2] / (1 - weight[4]))),
                           math.pow((p * E2_C1l[4] + q * E2_C1l[3]), (weight[4] * weight[3] / (1 - weight[4])))))

E2_F_PCoB_l6 = numpy.prod((math.pow((p * E2_C1l[5] + q * E2_C1l[6]), (weight[5] * weight[6] / (1 - weight[5]))),
                           math.pow((p * E2_C1l[5] + q * E2_C1l[7]), (weight[5] * weight[7] / (1 - weight[5]))),
                           math.pow((p * E2_C1l[5] + q * E2_C1l[0]), (weight[5] * weight[0] / (1 - weight[5]))),
                           math.pow((p * E2_C1l[5] + q * E2_C1l[1]), (weight[5] * weight[1] / (1 - weight[5]))),
                           math.pow((p * E2_C1l[5] + q * E2_C1l[2]), (weight[5] * weight[2] / (1 - weight[5]))),
                           math.pow((p * E2_C1l[5] + q * E2_C1l[3]), (weight[5] * weight[3] / (1 - weight[5]))),
                           math.pow((p * E2_C1l[5] + q * E2_C1l[4]), (weight[5] * weight[4] / (1 - weight[5])))))

E2_F_PCoB_l7 = numpy.prod((math.pow((p * E2_C1l[6] + q * E2_C1l[7]), (weight[6] * weight[7] / (1 - weight[6]))),
                           math.pow((p * E2_C1l[6] + q * E2_C1l[0]), (weight[6] * weight[0] / (1 - weight[6]))),
                           math.pow((p * E2_C1l[6] + q * E2_C1l[1]), (weight[6] * weight[1] / (1 - weight[6]))),
                           math.pow((p * E2_C1l[6] + q * E2_C1l[2]), (weight[6] * weight[2] / (1 - weight[6]))),
                           math.pow((p * E2_C1l[6] + q * E2_C1l[3]), (weight[6] * weight[3] / (1 - weight[6]))),
                           math.pow((p * E2_C1l[6] + q * E2_C1l[4]), (weight[6] * weight[4] / (1 - weight[6]))),
                           math.pow((p * E2_C1l[6] + q * E2_C1l[5]), (weight[6] * weight[5] / (1 - weight[6])))))

E2_F_PCoB_l8 = numpy.prod((math.pow((p * E2_C1l[7] + q * E2_C1l[0]), (weight[7] * weight[0] / (1 - weight[7]))),
                           math.pow((p * E2_C1l[7] + q * E2_C1l[1]), (weight[7] * weight[1] / (1 - weight[7]))),
                           math.pow((p * E2_C1l[7] + q * E2_C1l[2]), (weight[7] * weight[2] / (1 - weight[7]))),
                           math.pow((p * E2_C1l[7] + q * E2_C1l[3]), (weight[7] * weight[3] / (1 - weight[7]))),
                           math.pow((p * E2_C1l[7] + q * E2_C1l[4]), (weight[7] * weight[4] / (1 - weight[7]))),
                           math.pow((p * E2_C1l[7] + q * E2_C1l[5]), (weight[7] * weight[5] / (1 - weight[7]))),
                           math.pow((p * E2_C1l[7] + q * E2_C1l[6]), (weight[7] * weight[6] / (1 - weight[7])))))
E2_F_PCoB_l = a * numpy.prod(
    (E2_F_PCoB_l1, E2_F_PCoB_l2, E2_F_PCoB_l3, E2_F_PCoB_l4, E2_F_PCoB_l5, E2_F_PCoB_l6, E2_F_PCoB_l7, E2_F_PCoB_l8))
# </editor-fold>
# <editor-fold desc="E2_F_PCoB_m">
E2_F_PCoB_m1 = numpy.prod((math.pow((p * E2_C1m[0] + q * E2_C1m[1]), (weight[0] * weight[1] / (1 - weight[0]))),
                           math.pow((p * E2_C1m[0] + q * E2_C1m[2]), (weight[0] * weight[2] / (1 - weight[0]))),
                           math.pow((p * E2_C1m[0] + q * E2_C1m[3]), (weight[0] * weight[3] / (1 - weight[0]))),
                           math.pow((p * E2_C1m[0] + q * E2_C1m[4]), (weight[0] * weight[4] / (1 - weight[0]))),
                           math.pow((p * E2_C1m[0] + q * E2_C1m[5]), (weight[0] * weight[5] / (1 - weight[0]))),
                           math.pow((p * E2_C1m[0] + q * E2_C1m[6]), (weight[0] * weight[6] / (1 - weight[0]))),
                           math.pow((p * E2_C1m[0] + q * E2_C1m[7]), (weight[0] * weight[7] / (1 - weight[0])))))

E2_F_PCoB_m2 = numpy.prod((math.pow((p * E2_C1m[1] + q * E2_C1m[2]), (weight[1] * weight[2] / (1 - weight[1]))),
                           math.pow((p * E2_C1m[1] + q * E2_C1m[3]), (weight[1] * weight[3] / (1 - weight[1]))),
                           math.pow((p * E2_C1m[1] + q * E2_C1m[4]), (weight[1] * weight[4] / (1 - weight[1]))),
                           math.pow((p * E2_C1m[1] + q * E2_C1m[5]), (weight[1] * weight[5] / (1 - weight[1]))),
                           math.pow((p * E2_C1m[1] + q * E2_C1m[6]), (weight[1] * weight[6] / (1 - weight[1]))),
                           math.pow((p * E2_C1m[1] + q * E2_C1m[7]), (weight[1] * weight[7] / (1 - weight[1]))),
                           math.pow((p * E2_C1m[1] + q * E2_C1m[0]), (weight[1] * weight[0] / (1 - weight[1])))))

E2_F_PCoB_m3 = numpy.prod((math.pow((p * E2_C1m[2] + q * E2_C1m[3]), (weight[2] * weight[3] / (1 - weight[2]))),
                           math.pow((p * E2_C1m[2] + q * E2_C1m[4]), (weight[2] * weight[4] / (1 - weight[2]))),
                           math.pow((p * E2_C1m[2] + q * E2_C1m[5]), (weight[2] * weight[5] / (1 - weight[2]))),
                           math.pow((p * E2_C1m[2] + q * E2_C1m[6]), (weight[2] * weight[6] / (1 - weight[2]))),
                           math.pow((p * E2_C1m[2] + q * E2_C1m[7]), (weight[2] * weight[7] / (1 - weight[2]))),
                           math.pow((p * E2_C1m[2] + q * E2_C1m[0]), (weight[2] * weight[0] / (1 - weight[2]))),
                           math.pow((p * E2_C1m[2] + q * E2_C1m[1]), (weight[2] * weight[1] / (1 - weight[2])))))

E2_F_PCoB_m4 = numpy.prod((math.pow((p * E2_C1m[3] + q * E2_C1m[4]), (weight[3] * weight[4] / (1 - weight[3]))),
                           math.pow((p * E2_C1m[3] + q * E2_C1m[5]), (weight[3] * weight[5] / (1 - weight[3]))),
                           math.pow((p * E2_C1m[3] + q * E2_C1m[6]), (weight[3] * weight[6] / (1 - weight[3]))),
                           math.pow((p * E2_C1m[3] + q * E2_C1m[7]), (weight[3] * weight[7] / (1 - weight[3]))),
                           math.pow((p * E2_C1m[3] + q * E2_C1m[0]), (weight[3] * weight[0] / (1 - weight[3]))),
                           math.pow((p * E2_C1m[3] + q * E2_C1m[1]), (weight[3] * weight[1] / (1 - weight[3]))),
                           math.pow((p * E2_C1m[3] + q * E2_C1m[2]), (weight[3] * weight[2] / (1 - weight[3])))))

E2_F_PCoB_m5 = numpy.prod((math.pow((p * E2_C1m[4] + q * E2_C1m[5]), (weight[4] * weight[5] / (1 - weight[4]))),
                           math.pow((p * E2_C1m[4] + q * E2_C1m[6]), (weight[4] * weight[6] / (1 - weight[4]))),
                           math.pow((p * E2_C1m[4] + q * E2_C1m[7]), (weight[4] * weight[7] / (1 - weight[4]))),
                           math.pow((p * E2_C1m[4] + q * E2_C1m[0]), (weight[4] * weight[0] / (1 - weight[4]))),
                           math.pow((p * E2_C1m[4] + q * E2_C1m[1]), (weight[4] * weight[1] / (1 - weight[4]))),
                           math.pow((p * E2_C1m[4] + q * E2_C1m[2]), (weight[4] * weight[2] / (1 - weight[4]))),
                           math.pow((p * E2_C1m[4] + q * E2_C1m[3]), (weight[4] * weight[3] / (1 - weight[4])))))

E2_F_PCoB_m6 = numpy.prod((math.pow((p * E2_C1m[5] + q * E2_C1m[6]), (weight[5] * weight[6] / (1 - weight[5]))),
                           math.pow((p * E2_C1m[5] + q * E2_C1m[7]), (weight[5] * weight[7] / (1 - weight[5]))),
                           math.pow((p * E2_C1m[5] + q * E2_C1m[0]), (weight[5] * weight[0] / (1 - weight[5]))),
                           math.pow((p * E2_C1m[5] + q * E2_C1m[1]), (weight[5] * weight[1] / (1 - weight[5]))),
                           math.pow((p * E2_C1m[5] + q * E2_C1m[2]), (weight[5] * weight[2] / (1 - weight[5]))),
                           math.pow((p * E2_C1m[5] + q * E2_C1m[3]), (weight[5] * weight[3] / (1 - weight[5]))),
                           math.pow((p * E2_C1m[5] + q * E2_C1m[4]), (weight[5] * weight[4] / (1 - weight[5])))))

E2_F_PCoB_m7 = numpy.prod((math.pow((p * E2_C1m[6] + q * E2_C1m[7]), (weight[6] * weight[7] / (1 - weight[6]))),
                           math.pow((p * E2_C1m[6] + q * E2_C1m[0]), (weight[6] * weight[0] / (1 - weight[6]))),
                           math.pow((p * E2_C1m[6] + q * E2_C1m[1]), (weight[6] * weight[1] / (1 - weight[6]))),
                           math.pow((p * E2_C1m[6] + q * E2_C1m[2]), (weight[6] * weight[2] / (1 - weight[6]))),
                           math.pow((p * E2_C1m[6] + q * E2_C1m[3]), (weight[6] * weight[3] / (1 - weight[6]))),
                           math.pow((p * E2_C1m[6] + q * E2_C1m[4]), (weight[6] * weight[4] / (1 - weight[6]))),
                           math.pow((p * E2_C1m[6] + q * E2_C1m[5]), (weight[6] * weight[5] / (1 - weight[6])))))

E2_F_PCoB_m8 = numpy.prod((math.pow((p * E2_C1m[7] + q * E2_C1m[0]), (weight[7] * weight[0] / (1 - weight[7]))),
                           math.pow((p * E2_C1m[7] + q * E2_C1m[1]), (weight[7] * weight[1] / (1 - weight[7]))),
                           math.pow((p * E2_C1m[7] + q * E2_C1m[2]), (weight[7] * weight[2] / (1 - weight[7]))),
                           math.pow((p * E2_C1m[7] + q * E2_C1m[3]), (weight[7] * weight[3] / (1 - weight[7]))),
                           math.pow((p * E2_C1m[7] + q * E2_C1m[4]), (weight[7] * weight[4] / (1 - weight[7]))),
                           math.pow((p * E2_C1m[7] + q * E2_C1m[5]), (weight[7] * weight[5] / (1 - weight[7]))),
                           math.pow((p * E2_C1m[7] + q * E2_C1m[6]), (weight[7] * weight[6] / (1 - weight[7])))))
E2_F_PCoB_m = a * numpy.prod(
    (E2_F_PCoB_m1, E2_F_PCoB_m2, E2_F_PCoB_m3, E2_F_PCoB_m4, E2_F_PCoB_m5, E2_F_PCoB_m6, E2_F_PCoB_m7, E2_F_PCoB_m8))
# </editor-fold>
# <editor-fold desc="E2_F_PCoB_u">
E2_F_PCoB_u1 = numpy.prod((math.pow((p * E2_C1u[0] + q * E2_C1u[1]), (weight[0] * weight[1] / (1 - weight[0]))),
                           math.pow((p * E2_C1u[0] + q * E2_C1u[2]), (weight[0] * weight[2] / (1 - weight[0]))),
                           math.pow((p * E2_C1u[0] + q * E2_C1u[3]), (weight[0] * weight[3] / (1 - weight[0]))),
                           math.pow((p * E2_C1u[0] + q * E2_C1u[4]), (weight[0] * weight[4] / (1 - weight[0]))),
                           math.pow((p * E2_C1u[0] + q * E2_C1u[5]), (weight[0] * weight[5] / (1 - weight[0]))),
                           math.pow((p * E2_C1u[0] + q * E2_C1u[6]), (weight[0] * weight[6] / (1 - weight[0]))),
                           math.pow((p * E2_C1u[0] + q * E2_C1u[7]), (weight[0] * weight[7] / (1 - weight[0])))))

E2_F_PCoB_u2 = numpy.prod((math.pow((p * E2_C1u[1] + q * E2_C1u[2]), (weight[1] * weight[2] / (1 - weight[1]))),
                           math.pow((p * E2_C1u[1] + q * E2_C1u[3]), (weight[1] * weight[3] / (1 - weight[1]))),
                           math.pow((p * E2_C1u[1] + q * E2_C1u[4]), (weight[1] * weight[4] / (1 - weight[1]))),
                           math.pow((p * E2_C1u[1] + q * E2_C1u[5]), (weight[1] * weight[5] / (1 - weight[1]))),
                           math.pow((p * E2_C1u[1] + q * E2_C1u[6]), (weight[1] * weight[6] / (1 - weight[1]))),
                           math.pow((p * E2_C1u[1] + q * E2_C1u[7]), (weight[1] * weight[7] / (1 - weight[1]))),
                           math.pow((p * E2_C1u[1] + q * E2_C1u[0]), (weight[1] * weight[0] / (1 - weight[1])))))

E2_F_PCoB_u3 = numpy.prod((math.pow((p * E2_C1u[2] + q * E2_C1u[3]), (weight[2] * weight[3] / (1 - weight[2]))),
                           math.pow((p * E2_C1u[2] + q * E2_C1u[4]), (weight[2] * weight[4] / (1 - weight[2]))),
                           math.pow((p * E2_C1u[2] + q * E2_C1u[5]), (weight[2] * weight[5] / (1 - weight[2]))),
                           math.pow((p * E2_C1u[2] + q * E2_C1u[6]), (weight[2] * weight[6] / (1 - weight[2]))),
                           math.pow((p * E2_C1u[2] + q * E2_C1u[7]), (weight[2] * weight[7] / (1 - weight[2]))),
                           math.pow((p * E2_C1u[2] + q * E2_C1u[0]), (weight[2] * weight[0] / (1 - weight[2]))),
                           math.pow((p * E2_C1u[2] + q * E2_C1u[1]), (weight[2] * weight[1] / (1 - weight[2])))))

E2_F_PCoB_u4 = numpy.prod((math.pow((p * E2_C1u[3] + q * E2_C1u[4]), (weight[3] * weight[4] / (1 - weight[3]))),
                           math.pow((p * E2_C1u[3] + q * E2_C1u[5]), (weight[3] * weight[5] / (1 - weight[3]))),
                           math.pow((p * E2_C1u[3] + q * E2_C1u[6]), (weight[3] * weight[6] / (1 - weight[3]))),
                           math.pow((p * E2_C1u[3] + q * E2_C1u[7]), (weight[3] * weight[7] / (1 - weight[3]))),
                           math.pow((p * E2_C1u[3] + q * E2_C1u[0]), (weight[3] * weight[0] / (1 - weight[3]))),
                           math.pow((p * E2_C1u[3] + q * E2_C1u[1]), (weight[3] * weight[1] / (1 - weight[3]))),
                           math.pow((p * E2_C1u[3] + q * E2_C1u[2]), (weight[3] * weight[2] / (1 - weight[3])))))

E2_F_PCoB_u5 = numpy.prod((math.pow((p * E2_C1u[4] + q * E2_C1u[5]), (weight[4] * weight[5] / (1 - weight[4]))),
                           math.pow((p * E2_C1u[4] + q * E2_C1u[6]), (weight[4] * weight[6] / (1 - weight[4]))),
                           math.pow((p * E2_C1u[4] + q * E2_C1u[7]), (weight[4] * weight[7] / (1 - weight[4]))),
                           math.pow((p * E2_C1u[4] + q * E2_C1u[0]), (weight[4] * weight[0] / (1 - weight[4]))),
                           math.pow((p * E2_C1u[4] + q * E2_C1u[1]), (weight[4] * weight[1] / (1 - weight[4]))),
                           math.pow((p * E2_C1u[4] + q * E2_C1u[2]), (weight[4] * weight[2] / (1 - weight[4]))),
                           math.pow((p * E2_C1u[4] + q * E2_C1u[3]), (weight[4] * weight[3] / (1 - weight[4])))))

E2_F_PCoB_u6 = numpy.prod((math.pow((p * E2_C1u[5] + q * E2_C1u[6]), (weight[5] * weight[6] / (1 - weight[5]))),
                           math.pow((p * E2_C1u[5] + q * E2_C1u[7]), (weight[5] * weight[7] / (1 - weight[5]))),
                           math.pow((p * E2_C1u[5] + q * E2_C1u[0]), (weight[5] * weight[0] / (1 - weight[5]))),
                           math.pow((p * E2_C1u[5] + q * E2_C1u[1]), (weight[5] * weight[1] / (1 - weight[5]))),
                           math.pow((p * E2_C1u[5] + q * E2_C1u[2]), (weight[5] * weight[2] / (1 - weight[5]))),
                           math.pow((p * E2_C1u[5] + q * E2_C1u[3]), (weight[5] * weight[3] / (1 - weight[5]))),
                           math.pow((p * E2_C1u[5] + q * E2_C1u[4]), (weight[5] * weight[4] / (1 - weight[5])))))

E2_F_PCoB_u7 = numpy.prod((math.pow((p * E2_C1u[6] + q * E2_C1u[7]), (weight[6] * weight[7] / (1 - weight[6]))),
                           math.pow((p * E2_C1u[6] + q * E2_C1u[0]), (weight[6] * weight[0] / (1 - weight[6]))),
                           math.pow((p * E2_C1u[6] + q * E2_C1u[1]), (weight[6] * weight[1] / (1 - weight[6]))),
                           math.pow((p * E2_C1u[6] + q * E2_C1u[2]), (weight[6] * weight[2] / (1 - weight[6]))),
                           math.pow((p * E2_C1u[6] + q * E2_C1u[3]), (weight[6] * weight[3] / (1 - weight[6]))),
                           math.pow((p * E2_C1u[6] + q * E2_C1u[4]), (weight[6] * weight[4] / (1 - weight[6]))),
                           math.pow((p * E2_C1u[6] + q * E2_C1u[5]), (weight[6] * weight[5] / (1 - weight[6])))))

E2_F_PCoB_u8 = numpy.prod((math.pow((p * E2_C1u[7] + q * E2_C1u[0]), (weight[7] * weight[0] / (1 - weight[7]))),
                           math.pow((p * E2_C1u[7] + q * E2_C1u[1]), (weight[7] * weight[1] / (1 - weight[7]))),
                           math.pow((p * E2_C1u[7] + q * E2_C1u[2]), (weight[7] * weight[2] / (1 - weight[7]))),
                           math.pow((p * E2_C1u[7] + q * E2_C1u[3]), (weight[7] * weight[3] / (1 - weight[7]))),
                           math.pow((p * E2_C1u[7] + q * E2_C1u[4]), (weight[7] * weight[4] / (1 - weight[7]))),
                           math.pow((p * E2_C1u[7] + q * E2_C1u[5]), (weight[7] * weight[5] / (1 - weight[7]))),
                           math.pow((p * E2_C1u[7] + q * E2_C1u[6]), (weight[7] * weight[6] / (1 - weight[7])))))
E2_F_PCoB_u = a * numpy.prod(
    (E2_F_PCoB_u1, E2_F_PCoB_u2, E2_F_PCoB_u3, E2_F_PCoB_u4, E2_F_PCoB_u5, E2_F_PCoB_u6, E2_F_PCoB_u7, E2_F_PCoB_u8))
# </editor-fold>
# print(E2_F_PCoB_l)
# print(E2_F_PCoB_m)
# print(E2_F_PCoB_u)
E2_PCoB = (E2_F_PCoB_l + 4 * E2_F_PCoB_m + E2_F_PCoB_u) / 6

# E3
# <editor-fold desc="E3_F_SCoB_l">
E3_F_SCoB_l1 = sum(
    ((((weight[0] * weight[1] / (1 - weight[0])) * math.pow(E3_C1l[0], p) * math.pow(E3_C1l[1], q)),
      ((weight[0] * weight[2] / (1 - weight[0])) * math.pow(E3_C1l[0], p) * math.pow(E3_C1l[2], q)),
      ((weight[0] * weight[3] / (1 - weight[0])) * math.pow(E3_C1l[0], p) * math.pow(E3_C1l[3], q)),
      ((weight[0] * weight[4] / (1 - weight[0])) * math.pow(E3_C1l[0], p) * math.pow(E3_C1l[4], q)),
      ((weight[0] * weight[5] / (1 - weight[0])) * math.pow(E3_C1l[0], p) * math.pow(E3_C1l[5], q)),
      ((weight[0] * weight[6] / (1 - weight[0])) * math.pow(E3_C1l[0], p) * math.pow(E3_C1l[6], q)),
      ((weight[0] * weight[7] / (1 - weight[0])) * math.pow(E3_C1l[0], p) * math.pow(E3_C1l[2], q)))))

E3_F_SCoB_l2 = sum(
    ((((weight[1] * weight[2] / (1 - weight[1])) * math.pow(E3_C1l[1], p) * math.pow(E3_C1l[2], q)),
      ((weight[1] * weight[3] / (1 - weight[1])) * math.pow(E3_C1l[1], p) * math.pow(E3_C1l[3], q)),
      ((weight[1] * weight[4] / (1 - weight[1])) * math.pow(E3_C1l[1], p) * math.pow(E3_C1l[4], q)),
      ((weight[1] * weight[5] / (1 - weight[1])) * math.pow(E3_C1l[1], p) * math.pow(E3_C1l[5], q)),
      ((weight[1] * weight[6] / (1 - weight[1])) * math.pow(E3_C1l[1], p) * math.pow(E3_C1l[6], q)),
      ((weight[1] * weight[7] / (1 - weight[1])) * math.pow(E3_C1l[1], p) * math.pow(E3_C1l[7], q)),
      ((weight[1] * weight[0] / (1 - weight[1])) * math.pow(E3_C1l[1], p) * math.pow(E3_C1l[0], q)))))

E3_F_SCoB_l3 = sum(
    ((((weight[2] * weight[3] / (1 - weight[2])) * math.pow(E3_C1l[2], p) * math.pow(E3_C1l[3], q)),
      ((weight[2] * weight[4] / (1 - weight[2])) * math.pow(E3_C1l[2], p) * math.pow(E3_C1l[4], q)),
      ((weight[2] * weight[5] / (1 - weight[2])) * math.pow(E3_C1l[2], p) * math.pow(E3_C1l[5], q)),
      ((weight[2] * weight[6] / (1 - weight[2])) * math.pow(E3_C1l[2], p) * math.pow(E3_C1l[6], q)),
      ((weight[2] * weight[7] / (1 - weight[2])) * math.pow(E3_C1l[2], p) * math.pow(E3_C1l[7], q)),
      ((weight[2] * weight[0] / (1 - weight[2])) * math.pow(E3_C1l[2], p) * math.pow(E3_C1l[0], q)),
      ((weight[2] * weight[1] / (1 - weight[2])) * math.pow(E3_C1l[2], p) * math.pow(E3_C1l[1], q)))))

E3_F_SCoB_l4 = sum(
    ((((weight[3] * weight[4] / (1 - weight[3])) * math.pow(E3_C1l[3], p) * math.pow(E3_C1l[4], q)),
      ((weight[3] * weight[5] / (1 - weight[3])) * math.pow(E3_C1l[3], p) * math.pow(E3_C1l[5], q)),
      ((weight[3] * weight[6] / (1 - weight[3])) * math.pow(E3_C1l[3], p) * math.pow(E3_C1l[6], q)),
      ((weight[3] * weight[7] / (1 - weight[3])) * math.pow(E3_C1l[3], p) * math.pow(E3_C1l[7], q)),
      ((weight[3] * weight[0] / (1 - weight[3])) * math.pow(E3_C1l[3], p) * math.pow(E3_C1l[0], q)),
      ((weight[3] * weight[1] / (1 - weight[3])) * math.pow(E3_C1l[3], p) * math.pow(E3_C1l[1], q)),
      ((weight[3] * weight[2] / (1 - weight[3])) * math.pow(E3_C1l[3], p) * math.pow(E3_C1l[2], q)))))

E3_F_SCoB_l5 = sum(
    ((((weight[4] * weight[5] / (1 - weight[4])) * math.pow(E3_C1l[4], p) * math.pow(E3_C1l[5], q)),
      ((weight[4] * weight[6] / (1 - weight[4])) * math.pow(E3_C1l[4], p) * math.pow(E3_C1l[6], q)),
      ((weight[4] * weight[7] / (1 - weight[4])) * math.pow(E3_C1l[4], p) * math.pow(E3_C1l[7], q)),
      ((weight[4] * weight[0] / (1 - weight[4])) * math.pow(E3_C1l[4], p) * math.pow(E3_C1l[0], q)),
      ((weight[4] * weight[1] / (1 - weight[4])) * math.pow(E3_C1l[4], p) * math.pow(E3_C1l[1], q)),
      ((weight[4] * weight[2] / (1 - weight[4])) * math.pow(E3_C1l[4], p) * math.pow(E3_C1l[2], q)),
      ((weight[4] * weight[3] / (1 - weight[4])) * math.pow(E3_C1l[4], p) * math.pow(E3_C1l[3], q)))))

E3_F_SCoB_l6 = sum(
    ((((weight[5] * weight[6] / (1 - weight[5])) * math.pow(E3_C1l[5], p) * math.pow(E3_C1l[6], q)),
      ((weight[5] * weight[7] / (1 - weight[5])) * math.pow(E3_C1l[5], p) * math.pow(E3_C1l[7], q)),
      ((weight[5] * weight[0] / (1 - weight[5])) * math.pow(E3_C1l[5], p) * math.pow(E3_C1l[0], q)),
      ((weight[5] * weight[1] / (1 - weight[5])) * math.pow(E3_C1l[5], p) * math.pow(E3_C1l[1], q)),
      ((weight[5] * weight[2] / (1 - weight[5])) * math.pow(E3_C1l[5], p) * math.pow(E3_C1l[2], q)),
      ((weight[5] * weight[3] / (1 - weight[5])) * math.pow(E3_C1l[5], p) * math.pow(E3_C1l[3], q)),
      ((weight[5] * weight[4] / (1 - weight[5])) * math.pow(E3_C1l[5], p) * math.pow(E3_C1l[4], q)))))

E3_F_SCoB_l7 = sum(
    ((((weight[6] * weight[7] / (1 - weight[6])) * math.pow(E3_C1l[6], p) * math.pow(E3_C1l[7], q)),
      ((weight[6] * weight[0] / (1 - weight[6])) * math.pow(E3_C1l[6], p) * math.pow(E3_C1l[0], q)),
      ((weight[6] * weight[1] / (1 - weight[6])) * math.pow(E3_C1l[6], p) * math.pow(E3_C1l[1], q)),
      ((weight[6] * weight[2] / (1 - weight[6])) * math.pow(E3_C1l[6], p) * math.pow(E3_C1l[2], q)),
      ((weight[6] * weight[3] / (1 - weight[6])) * math.pow(E3_C1l[6], p) * math.pow(E3_C1l[3], q)),
      ((weight[6] * weight[4] / (1 - weight[6])) * math.pow(E3_C1l[6], p) * math.pow(E3_C1l[4], q)),
      ((weight[6] * weight[5] / (1 - weight[6])) * math.pow(E3_C1l[6], p) * math.pow(E3_C1l[5], q)))))

E3_F_SCoB_l8 = sum(
    ((((weight[7] * weight[0] / (1 - weight[7])) * math.pow(E3_C1l[7], p) * math.pow(E3_C1l[0], q)),
      ((weight[7] * weight[1] / (1 - weight[7])) * math.pow(E3_C1l[7], p) * math.pow(E3_C1l[1], q)),
      ((weight[7] * weight[2] / (1 - weight[7])) * math.pow(E3_C1l[7], p) * math.pow(E3_C1l[2], q)),
      ((weight[7] * weight[3] / (1 - weight[7])) * math.pow(E3_C1l[7], p) * math.pow(E3_C1l[3], q)),
      ((weight[7] * weight[4] / (1 - weight[7])) * math.pow(E3_C1l[7], p) * math.pow(E3_C1l[4], q)),
      ((weight[7] * weight[5] / (1 - weight[7])) * math.pow(E3_C1l[7], p) * math.pow(E3_C1l[5], q)),
      ((weight[7] * weight[6] / (1 - weight[7])) * math.pow(E3_C1l[7], p) * math.pow(E3_C1l[6], q)))))
E3_F_SCoB_l = pow(sum(
    (E3_F_SCoB_l1, E3_F_SCoB_l2, E3_F_SCoB_l3, E3_F_SCoB_l4, E3_F_SCoB_l5, E3_F_SCoB_l6, E3_F_SCoB_l7, E3_F_SCoB_l8)),
    a)
# </editor-fold>
# <editor-fold desc="E3_F_SCoB_m">
E3_F_SCoB_m1 = sum(
    ((((weight[0] * weight[1] / (1 - weight[0])) * math.pow(E3_C1m[0], p) * math.pow(E3_C1m[1], q)),
      ((weight[0] * weight[2] / (1 - weight[0])) * math.pow(E3_C1m[0], p) * math.pow(E3_C1m[2], q)),
      ((weight[0] * weight[3] / (1 - weight[0])) * math.pow(E3_C1m[0], p) * math.pow(E3_C1m[3], q)),
      ((weight[0] * weight[4] / (1 - weight[0])) * math.pow(E3_C1m[0], p) * math.pow(E3_C1m[4], q)),
      ((weight[0] * weight[5] / (1 - weight[0])) * math.pow(E3_C1m[0], p) * math.pow(E3_C1m[5], q)),
      ((weight[0] * weight[6] / (1 - weight[0])) * math.pow(E3_C1m[0], p) * math.pow(E3_C1m[6], q)),
      ((weight[0] * weight[7] / (1 - weight[0])) * math.pow(E3_C1m[0], p) * math.pow(E3_C1m[2], q)))))

E3_F_SCoB_m2 = sum(
    ((((weight[1] * weight[2] / (1 - weight[1])) * math.pow(E3_C1m[1], p) * math.pow(E3_C1m[2], q)),
      ((weight[1] * weight[3] / (1 - weight[1])) * math.pow(E3_C1m[1], p) * math.pow(E3_C1m[3], q)),
      ((weight[1] * weight[4] / (1 - weight[1])) * math.pow(E3_C1m[1], p) * math.pow(E3_C1m[4], q)),
      ((weight[1] * weight[5] / (1 - weight[1])) * math.pow(E3_C1m[1], p) * math.pow(E3_C1m[5], q)),
      ((weight[1] * weight[6] / (1 - weight[1])) * math.pow(E3_C1m[1], p) * math.pow(E3_C1m[6], q)),
      ((weight[1] * weight[7] / (1 - weight[1])) * math.pow(E3_C1m[1], p) * math.pow(E3_C1m[7], q)),
      ((weight[1] * weight[0] / (1 - weight[1])) * math.pow(E3_C1m[1], p) * math.pow(E3_C1m[0], q)))))

E3_F_SCoB_m3 = sum(
    ((((weight[2] * weight[3] / (1 - weight[2])) * math.pow(E3_C1m[2], p) * math.pow(E3_C1m[3], q)),
      ((weight[2] * weight[4] / (1 - weight[2])) * math.pow(E3_C1m[2], p) * math.pow(E3_C1m[4], q)),
      ((weight[2] * weight[5] / (1 - weight[2])) * math.pow(E3_C1m[2], p) * math.pow(E3_C1m[5], q)),
      ((weight[2] * weight[6] / (1 - weight[2])) * math.pow(E3_C1m[2], p) * math.pow(E3_C1m[6], q)),
      ((weight[2] * weight[7] / (1 - weight[2])) * math.pow(E3_C1m[2], p) * math.pow(E3_C1m[7], q)),
      ((weight[2] * weight[0] / (1 - weight[2])) * math.pow(E3_C1m[2], p) * math.pow(E3_C1m[0], q)),
      ((weight[2] * weight[1] / (1 - weight[2])) * math.pow(E3_C1m[2], p) * math.pow(E3_C1m[1], q)))))

E3_F_SCoB_m4 = sum(
    ((((weight[3] * weight[4] / (1 - weight[3])) * math.pow(E3_C1m[3], p) * math.pow(E3_C1m[4], q)),
      ((weight[3] * weight[5] / (1 - weight[3])) * math.pow(E3_C1m[3], p) * math.pow(E3_C1m[5], q)),
      ((weight[3] * weight[6] / (1 - weight[3])) * math.pow(E3_C1m[3], p) * math.pow(E3_C1m[6], q)),
      ((weight[3] * weight[7] / (1 - weight[3])) * math.pow(E3_C1m[3], p) * math.pow(E3_C1m[7], q)),
      ((weight[3] * weight[0] / (1 - weight[3])) * math.pow(E3_C1m[3], p) * math.pow(E3_C1m[0], q)),
      ((weight[3] * weight[1] / (1 - weight[3])) * math.pow(E3_C1m[3], p) * math.pow(E3_C1m[1], q)),
      ((weight[3] * weight[2] / (1 - weight[3])) * math.pow(E3_C1m[3], p) * math.pow(E3_C1m[2], q)))))

E3_F_SCoB_m5 = sum(
    ((((weight[4] * weight[5] / (1 - weight[4])) * math.pow(E3_C1m[4], p) * math.pow(E3_C1m[5], q)),
      ((weight[4] * weight[6] / (1 - weight[4])) * math.pow(E3_C1m[4], p) * math.pow(E3_C1m[6], q)),
      ((weight[4] * weight[7] / (1 - weight[4])) * math.pow(E3_C1m[4], p) * math.pow(E3_C1m[7], q)),
      ((weight[4] * weight[0] / (1 - weight[4])) * math.pow(E3_C1m[4], p) * math.pow(E3_C1m[0], q)),
      ((weight[4] * weight[1] / (1 - weight[4])) * math.pow(E3_C1m[4], p) * math.pow(E3_C1m[1], q)),
      ((weight[4] * weight[2] / (1 - weight[4])) * math.pow(E3_C1m[4], p) * math.pow(E3_C1m[2], q)),
      ((weight[4] * weight[3] / (1 - weight[4])) * math.pow(E3_C1m[4], p) * math.pow(E3_C1m[3], q)))))

E3_F_SCoB_m6 = sum(
    ((((weight[5] * weight[6] / (1 - weight[5])) * math.pow(E3_C1m[5], p) * math.pow(E3_C1m[6], q)),
      ((weight[5] * weight[7] / (1 - weight[5])) * math.pow(E3_C1m[5], p) * math.pow(E3_C1m[7], q)),
      ((weight[5] * weight[0] / (1 - weight[5])) * math.pow(E3_C1m[5], p) * math.pow(E3_C1m[0], q)),
      ((weight[5] * weight[1] / (1 - weight[5])) * math.pow(E3_C1m[5], p) * math.pow(E3_C1m[1], q)),
      ((weight[5] * weight[2] / (1 - weight[5])) * math.pow(E3_C1m[5], p) * math.pow(E3_C1m[2], q)),
      ((weight[5] * weight[3] / (1 - weight[5])) * math.pow(E3_C1m[5], p) * math.pow(E3_C1m[3], q)),
      ((weight[5] * weight[4] / (1 - weight[5])) * math.pow(E3_C1m[5], p) * math.pow(E3_C1m[4], q)))))

E3_F_SCoB_m7 = sum(
    ((((weight[6] * weight[7] / (1 - weight[6])) * math.pow(E3_C1m[6], p) * math.pow(E3_C1m[7], q)),
      ((weight[6] * weight[0] / (1 - weight[6])) * math.pow(E3_C1m[6], p) * math.pow(E3_C1m[0], q)),
      ((weight[6] * weight[1] / (1 - weight[6])) * math.pow(E3_C1m[6], p) * math.pow(E3_C1m[1], q)),
      ((weight[6] * weight[2] / (1 - weight[6])) * math.pow(E3_C1m[6], p) * math.pow(E3_C1m[2], q)),
      ((weight[6] * weight[3] / (1 - weight[6])) * math.pow(E3_C1m[6], p) * math.pow(E3_C1m[3], q)),
      ((weight[6] * weight[4] / (1 - weight[6])) * math.pow(E3_C1m[6], p) * math.pow(E3_C1m[4], q)),
      ((weight[6] * weight[5] / (1 - weight[6])) * math.pow(E3_C1m[6], p) * math.pow(E3_C1m[5], q)))))

E3_F_SCoB_m8 = sum(
    ((((weight[7] * weight[0] / (1 - weight[7])) * math.pow(E3_C1m[7], p) * math.pow(E3_C1m[0], q)),
      ((weight[7] * weight[1] / (1 - weight[7])) * math.pow(E3_C1m[7], p) * math.pow(E3_C1m[1], q)),
      ((weight[7] * weight[2] / (1 - weight[7])) * math.pow(E3_C1m[7], p) * math.pow(E3_C1m[2], q)),
      ((weight[7] * weight[3] / (1 - weight[7])) * math.pow(E3_C1m[7], p) * math.pow(E3_C1m[3], q)),
      ((weight[7] * weight[4] / (1 - weight[7])) * math.pow(E3_C1m[7], p) * math.pow(E3_C1m[4], q)),
      ((weight[7] * weight[5] / (1 - weight[7])) * math.pow(E3_C1m[7], p) * math.pow(E3_C1m[5], q)),
      ((weight[7] * weight[6] / (1 - weight[7])) * math.pow(E3_C1m[7], p) * math.pow(E3_C1m[6], q)))))
E3_F_SCoB_m = pow(sum(
    (E3_F_SCoB_m1, E3_F_SCoB_m2, E3_F_SCoB_m3, E3_F_SCoB_m4, E3_F_SCoB_m5, E3_F_SCoB_m6, E3_F_SCoB_m7, E3_F_SCoB_m8)),
    a)
# </editor-fold>
# <editor-fold desc="E3_F_SCoB_u">
E3_F_SCoB_u1 = sum(
    ((((weight[0] * weight[1] / (1 - weight[0])) * math.pow(E3_C1u[0], p) * math.pow(E3_C1u[1], q)),
      ((weight[0] * weight[2] / (1 - weight[0])) * math.pow(E3_C1u[0], p) * math.pow(E3_C1u[2], q)),
      ((weight[0] * weight[3] / (1 - weight[0])) * math.pow(E3_C1u[0], p) * math.pow(E3_C1u[3], q)),
      ((weight[0] * weight[4] / (1 - weight[0])) * math.pow(E3_C1u[0], p) * math.pow(E3_C1u[4], q)),
      ((weight[0] * weight[5] / (1 - weight[0])) * math.pow(E3_C1u[0], p) * math.pow(E3_C1u[5], q)),
      ((weight[0] * weight[6] / (1 - weight[0])) * math.pow(E3_C1u[0], p) * math.pow(E3_C1u[6], q)),
      ((weight[0] * weight[7] / (1 - weight[0])) * math.pow(E3_C1u[0], p) * math.pow(E3_C1u[2], q)))))

E3_F_SCoB_u2 = sum(
    ((((weight[1] * weight[2] / (1 - weight[1])) * math.pow(E3_C1u[1], p) * math.pow(E3_C1u[2], q)),
      ((weight[1] * weight[3] / (1 - weight[1])) * math.pow(E3_C1u[1], p) * math.pow(E3_C1u[3], q)),
      ((weight[1] * weight[4] / (1 - weight[1])) * math.pow(E3_C1u[1], p) * math.pow(E3_C1u[4], q)),
      ((weight[1] * weight[5] / (1 - weight[1])) * math.pow(E3_C1u[1], p) * math.pow(E3_C1u[5], q)),
      ((weight[1] * weight[6] / (1 - weight[1])) * math.pow(E3_C1u[1], p) * math.pow(E3_C1u[6], q)),
      ((weight[1] * weight[7] / (1 - weight[1])) * math.pow(E3_C1u[1], p) * math.pow(E3_C1u[7], q)),
      ((weight[1] * weight[0] / (1 - weight[1])) * math.pow(E3_C1u[1], p) * math.pow(E3_C1u[0], q)))))

E3_F_SCoB_u3 = sum(
    ((((weight[2] * weight[3] / (1 - weight[2])) * math.pow(E3_C1u[2], p) * math.pow(E3_C1u[3], q)),
      ((weight[2] * weight[4] / (1 - weight[2])) * math.pow(E3_C1u[2], p) * math.pow(E3_C1u[4], q)),
      ((weight[2] * weight[5] / (1 - weight[2])) * math.pow(E3_C1u[2], p) * math.pow(E3_C1u[5], q)),
      ((weight[2] * weight[6] / (1 - weight[2])) * math.pow(E3_C1u[2], p) * math.pow(E3_C1u[6], q)),
      ((weight[2] * weight[7] / (1 - weight[2])) * math.pow(E3_C1u[2], p) * math.pow(E3_C1u[7], q)),
      ((weight[2] * weight[0] / (1 - weight[2])) * math.pow(E3_C1u[2], p) * math.pow(E3_C1u[0], q)),
      ((weight[2] * weight[1] / (1 - weight[2])) * math.pow(E3_C1u[2], p) * math.pow(E3_C1u[1], q)))))

E3_F_SCoB_u4 = sum(
    ((((weight[3] * weight[4] / (1 - weight[3])) * math.pow(E3_C1u[3], p) * math.pow(E3_C1u[4], q)),
      ((weight[3] * weight[5] / (1 - weight[3])) * math.pow(E3_C1u[3], p) * math.pow(E3_C1u[5], q)),
      ((weight[3] * weight[6] / (1 - weight[3])) * math.pow(E3_C1u[3], p) * math.pow(E3_C1u[6], q)),
      ((weight[3] * weight[7] / (1 - weight[3])) * math.pow(E3_C1u[3], p) * math.pow(E3_C1u[7], q)),
      ((weight[3] * weight[0] / (1 - weight[3])) * math.pow(E3_C1u[3], p) * math.pow(E3_C1u[0], q)),
      ((weight[3] * weight[1] / (1 - weight[3])) * math.pow(E3_C1u[3], p) * math.pow(E3_C1u[1], q)),
      ((weight[3] * weight[2] / (1 - weight[3])) * math.pow(E3_C1u[3], p) * math.pow(E3_C1u[2], q)))))

E3_F_SCoB_u5 = sum(
    ((((weight[4] * weight[5] / (1 - weight[4])) * math.pow(E3_C1u[4], p) * math.pow(E3_C1u[5], q)),
      ((weight[4] * weight[6] / (1 - weight[4])) * math.pow(E3_C1u[4], p) * math.pow(E3_C1u[6], q)),
      ((weight[4] * weight[7] / (1 - weight[4])) * math.pow(E3_C1u[4], p) * math.pow(E3_C1u[7], q)),
      ((weight[4] * weight[0] / (1 - weight[4])) * math.pow(E3_C1u[4], p) * math.pow(E3_C1u[0], q)),
      ((weight[4] * weight[1] / (1 - weight[4])) * math.pow(E3_C1u[4], p) * math.pow(E3_C1u[1], q)),
      ((weight[4] * weight[2] / (1 - weight[4])) * math.pow(E3_C1u[4], p) * math.pow(E3_C1u[2], q)),
      ((weight[4] * weight[3] / (1 - weight[4])) * math.pow(E3_C1u[4], p) * math.pow(E3_C1u[3], q)))))

E3_F_SCoB_u6 = sum(
    ((((weight[5] * weight[6] / (1 - weight[5])) * math.pow(E3_C1u[5], p) * math.pow(E3_C1u[6], q)),
      ((weight[5] * weight[7] / (1 - weight[5])) * math.pow(E3_C1u[5], p) * math.pow(E3_C1u[7], q)),
      ((weight[5] * weight[0] / (1 - weight[5])) * math.pow(E3_C1u[5], p) * math.pow(E3_C1u[0], q)),
      ((weight[5] * weight[1] / (1 - weight[5])) * math.pow(E3_C1u[5], p) * math.pow(E3_C1u[1], q)),
      ((weight[5] * weight[2] / (1 - weight[5])) * math.pow(E3_C1u[5], p) * math.pow(E3_C1u[2], q)),
      ((weight[5] * weight[3] / (1 - weight[5])) * math.pow(E3_C1u[5], p) * math.pow(E3_C1u[3], q)),
      ((weight[5] * weight[4] / (1 - weight[5])) * math.pow(E3_C1u[5], p) * math.pow(E3_C1u[4], q)))))

E3_F_SCoB_u7 = sum(
    ((((weight[6] * weight[7] / (1 - weight[6])) * math.pow(E3_C1u[6], p) * math.pow(E3_C1u[7], q)),
      ((weight[6] * weight[0] / (1 - weight[6])) * math.pow(E3_C1u[6], p) * math.pow(E3_C1u[0], q)),
      ((weight[6] * weight[1] / (1 - weight[6])) * math.pow(E3_C1u[6], p) * math.pow(E3_C1u[1], q)),
      ((weight[6] * weight[2] / (1 - weight[6])) * math.pow(E3_C1u[6], p) * math.pow(E3_C1u[2], q)),
      ((weight[6] * weight[3] / (1 - weight[6])) * math.pow(E3_C1u[6], p) * math.pow(E3_C1u[3], q)),
      ((weight[6] * weight[4] / (1 - weight[6])) * math.pow(E3_C1u[6], p) * math.pow(E3_C1u[4], q)),
      ((weight[6] * weight[5] / (1 - weight[6])) * math.pow(E3_C1u[6], p) * math.pow(E3_C1u[5], q)))))

E3_F_SCoB_u8 = sum(
    ((((weight[7] * weight[0] / (1 - weight[7])) * math.pow(E3_C1u[7], p) * math.pow(E3_C1u[0], q)),
      ((weight[7] * weight[1] / (1 - weight[7])) * math.pow(E3_C1u[7], p) * math.pow(E3_C1u[1], q)),
      ((weight[7] * weight[2] / (1 - weight[7])) * math.pow(E3_C1u[7], p) * math.pow(E3_C1u[2], q)),
      ((weight[7] * weight[3] / (1 - weight[7])) * math.pow(E3_C1u[7], p) * math.pow(E3_C1u[3], q)),
      ((weight[7] * weight[4] / (1 - weight[7])) * math.pow(E3_C1u[7], p) * math.pow(E3_C1u[4], q)),
      ((weight[7] * weight[5] / (1 - weight[7])) * math.pow(E3_C1u[7], p) * math.pow(E3_C1u[5], q)),
      ((weight[7] * weight[6] / (1 - weight[7])) * math.pow(E3_C1u[7], p) * math.pow(E3_C1u[6], q)))))
E3_F_SCoB_u = pow(sum(
    (E3_F_SCoB_u1, E3_F_SCoB_u2, E3_F_SCoB_u3, E3_F_SCoB_u4, E3_F_SCoB_u5, E3_F_SCoB_u6, E3_F_SCoB_u7, E3_F_SCoB_u8)),
    a)
# </editor-fold>
# print(E3_F_SCoB_l)
# print(E3_F_SCoB_m)
# print(E3_F_SCoB_u)
E3_SCoB = (E3_F_SCoB_l + 4 * E3_F_SCoB_m + E3_F_SCoB_u) / 6

# <editor-fold desc="E3_F_PCoB_l">
E3_F_PCoB_l1 = numpy.prod((math.pow((p * E3_C1l[0] + q * E3_C1l[1]), (weight[0] * weight[1] / (1 - weight[0]))),
                           math.pow((p * E3_C1l[0] + q * E3_C1l[2]), (weight[0] * weight[2] / (1 - weight[0]))),
                           math.pow((p * E3_C1l[0] + q * E3_C1l[3]), (weight[0] * weight[3] / (1 - weight[0]))),
                           math.pow((p * E3_C1l[0] + q * E3_C1l[4]), (weight[0] * weight[4] / (1 - weight[0]))),
                           math.pow((p * E3_C1l[0] + q * E3_C1l[5]), (weight[0] * weight[5] / (1 - weight[0]))),
                           math.pow((p * E3_C1l[0] + q * E3_C1l[6]), (weight[0] * weight[6] / (1 - weight[0]))),
                           math.pow((p * E3_C1l[0] + q * E3_C1l[7]), (weight[0] * weight[7] / (1 - weight[0])))))

E3_F_PCoB_l2 = numpy.prod((math.pow((p * E3_C1l[1] + q * E3_C1l[2]), (weight[1] * weight[2] / (1 - weight[1]))),
                           math.pow((p * E3_C1l[1] + q * E3_C1l[3]), (weight[1] * weight[3] / (1 - weight[1]))),
                           math.pow((p * E3_C1l[1] + q * E3_C1l[4]), (weight[1] * weight[4] / (1 - weight[1]))),
                           math.pow((p * E3_C1l[1] + q * E3_C1l[5]), (weight[1] * weight[5] / (1 - weight[1]))),
                           math.pow((p * E3_C1l[1] + q * E3_C1l[6]), (weight[1] * weight[6] / (1 - weight[1]))),
                           math.pow((p * E3_C1l[1] + q * E3_C1l[7]), (weight[1] * weight[7] / (1 - weight[1]))),
                           math.pow((p * E3_C1l[1] + q * E3_C1l[0]), (weight[1] * weight[0] / (1 - weight[1])))))

E3_F_PCoB_l3 = numpy.prod((math.pow((p * E3_C1l[2] + q * E3_C1l[3]), (weight[2] * weight[3] / (1 - weight[2]))),
                           math.pow((p * E3_C1l[2] + q * E3_C1l[4]), (weight[2] * weight[4] / (1 - weight[2]))),
                           math.pow((p * E3_C1l[2] + q * E3_C1l[5]), (weight[2] * weight[5] / (1 - weight[2]))),
                           math.pow((p * E3_C1l[2] + q * E3_C1l[6]), (weight[2] * weight[6] / (1 - weight[2]))),
                           math.pow((p * E3_C1l[2] + q * E3_C1l[7]), (weight[2] * weight[7] / (1 - weight[2]))),
                           math.pow((p * E3_C1l[2] + q * E3_C1l[0]), (weight[2] * weight[0] / (1 - weight[2]))),
                           math.pow((p * E3_C1l[2] + q * E3_C1l[1]), (weight[2] * weight[1] / (1 - weight[2])))))

E3_F_PCoB_l4 = numpy.prod((math.pow((p * E3_C1l[3] + q * E3_C1l[4]), (weight[3] * weight[4] / (1 - weight[3]))),
                           math.pow((p * E3_C1l[3] + q * E3_C1l[5]), (weight[3] * weight[5] / (1 - weight[3]))),
                           math.pow((p * E3_C1l[3] + q * E3_C1l[6]), (weight[3] * weight[6] / (1 - weight[3]))),
                           math.pow((p * E3_C1l[3] + q * E3_C1l[7]), (weight[3] * weight[7] / (1 - weight[3]))),
                           math.pow((p * E3_C1l[3] + q * E3_C1l[0]), (weight[3] * weight[0] / (1 - weight[3]))),
                           math.pow((p * E3_C1l[3] + q * E3_C1l[1]), (weight[3] * weight[1] / (1 - weight[3]))),
                           math.pow((p * E3_C1l[3] + q * E3_C1l[2]), (weight[3] * weight[2] / (1 - weight[3])))))

E3_F_PCoB_l5 = numpy.prod((math.pow((p * E3_C1l[4] + q * E3_C1l[5]), (weight[4] * weight[5] / (1 - weight[4]))),
                           math.pow((p * E3_C1l[4] + q * E3_C1l[6]), (weight[4] * weight[6] / (1 - weight[4]))),
                           math.pow((p * E3_C1l[4] + q * E3_C1l[7]), (weight[4] * weight[7] / (1 - weight[4]))),
                           math.pow((p * E3_C1l[4] + q * E3_C1l[0]), (weight[4] * weight[0] / (1 - weight[4]))),
                           math.pow((p * E3_C1l[4] + q * E3_C1l[1]), (weight[4] * weight[1] / (1 - weight[4]))),
                           math.pow((p * E3_C1l[4] + q * E3_C1l[2]), (weight[4] * weight[2] / (1 - weight[4]))),
                           math.pow((p * E3_C1l[4] + q * E3_C1l[3]), (weight[4] * weight[3] / (1 - weight[4])))))

E3_F_PCoB_l6 = numpy.prod((math.pow((p * E3_C1l[5] + q * E3_C1l[6]), (weight[5] * weight[6] / (1 - weight[5]))),
                           math.pow((p * E3_C1l[5] + q * E3_C1l[7]), (weight[5] * weight[7] / (1 - weight[5]))),
                           math.pow((p * E3_C1l[5] + q * E3_C1l[0]), (weight[5] * weight[0] / (1 - weight[5]))),
                           math.pow((p * E3_C1l[5] + q * E3_C1l[1]), (weight[5] * weight[1] / (1 - weight[5]))),
                           math.pow((p * E3_C1l[5] + q * E3_C1l[2]), (weight[5] * weight[2] / (1 - weight[5]))),
                           math.pow((p * E3_C1l[5] + q * E3_C1l[3]), (weight[5] * weight[3] / (1 - weight[5]))),
                           math.pow((p * E3_C1l[5] + q * E3_C1l[4]), (weight[5] * weight[4] / (1 - weight[5])))))

E3_F_PCoB_l7 = numpy.prod((math.pow((p * E3_C1l[6] + q * E3_C1l[7]), (weight[6] * weight[7] / (1 - weight[6]))),
                           math.pow((p * E3_C1l[6] + q * E3_C1l[0]), (weight[6] * weight[0] / (1 - weight[6]))),
                           math.pow((p * E3_C1l[6] + q * E3_C1l[1]), (weight[6] * weight[1] / (1 - weight[6]))),
                           math.pow((p * E3_C1l[6] + q * E3_C1l[2]), (weight[6] * weight[2] / (1 - weight[6]))),
                           math.pow((p * E3_C1l[6] + q * E3_C1l[3]), (weight[6] * weight[3] / (1 - weight[6]))),
                           math.pow((p * E3_C1l[6] + q * E3_C1l[4]), (weight[6] * weight[4] / (1 - weight[6]))),
                           math.pow((p * E3_C1l[6] + q * E3_C1l[5]), (weight[6] * weight[5] / (1 - weight[6])))))

E3_F_PCoB_l8 = numpy.prod((math.pow((p * E3_C1l[7] + q * E3_C1l[0]), (weight[7] * weight[0] / (1 - weight[7]))),
                           math.pow((p * E3_C1l[7] + q * E3_C1l[1]), (weight[7] * weight[1] / (1 - weight[7]))),
                           math.pow((p * E3_C1l[7] + q * E3_C1l[2]), (weight[7] * weight[2] / (1 - weight[7]))),
                           math.pow((p * E3_C1l[7] + q * E3_C1l[3]), (weight[7] * weight[3] / (1 - weight[7]))),
                           math.pow((p * E3_C1l[7] + q * E3_C1l[4]), (weight[7] * weight[4] / (1 - weight[7]))),
                           math.pow((p * E3_C1l[7] + q * E3_C1l[5]), (weight[7] * weight[5] / (1 - weight[7]))),
                           math.pow((p * E3_C1l[7] + q * E3_C1l[6]), (weight[7] * weight[6] / (1 - weight[7])))))
E3_F_PCoB_l = a * numpy.prod(
    (E3_F_PCoB_l1, E3_F_PCoB_l2, E3_F_PCoB_l3, E3_F_PCoB_l4, E3_F_PCoB_l5, E3_F_PCoB_l6, E3_F_PCoB_l7, E3_F_PCoB_l8))
# </editor-fold>
# <editor-fold desc="E3_F_PCoB_m">
E3_F_PCoB_m1 = numpy.prod((math.pow((p * E3_C1m[0] + q * E3_C1m[1]), (weight[0] * weight[1] / (1 - weight[0]))),
                           math.pow((p * E3_C1m[0] + q * E3_C1m[2]), (weight[0] * weight[2] / (1 - weight[0]))),
                           math.pow((p * E3_C1m[0] + q * E3_C1m[3]), (weight[0] * weight[3] / (1 - weight[0]))),
                           math.pow((p * E3_C1m[0] + q * E3_C1m[4]), (weight[0] * weight[4] / (1 - weight[0]))),
                           math.pow((p * E3_C1m[0] + q * E3_C1m[5]), (weight[0] * weight[5] / (1 - weight[0]))),
                           math.pow((p * E3_C1m[0] + q * E3_C1m[6]), (weight[0] * weight[6] / (1 - weight[0]))),
                           math.pow((p * E3_C1m[0] + q * E3_C1m[7]), (weight[0] * weight[7] / (1 - weight[0])))))

E3_F_PCoB_m2 = numpy.prod((math.pow((p * E3_C1m[1] + q * E3_C1m[2]), (weight[1] * weight[2] / (1 - weight[1]))),
                           math.pow((p * E3_C1m[1] + q * E3_C1m[3]), (weight[1] * weight[3] / (1 - weight[1]))),
                           math.pow((p * E3_C1m[1] + q * E3_C1m[4]), (weight[1] * weight[4] / (1 - weight[1]))),
                           math.pow((p * E3_C1m[1] + q * E3_C1m[5]), (weight[1] * weight[5] / (1 - weight[1]))),
                           math.pow((p * E3_C1m[1] + q * E3_C1m[6]), (weight[1] * weight[6] / (1 - weight[1]))),
                           math.pow((p * E3_C1m[1] + q * E3_C1m[7]), (weight[1] * weight[7] / (1 - weight[1]))),
                           math.pow((p * E3_C1m[1] + q * E3_C1m[0]), (weight[1] * weight[0] / (1 - weight[1])))))

E3_F_PCoB_m3 = numpy.prod((math.pow((p * E3_C1m[2] + q * E3_C1m[3]), (weight[2] * weight[3] / (1 - weight[2]))),
                           math.pow((p * E3_C1m[2] + q * E3_C1m[4]), (weight[2] * weight[4] / (1 - weight[2]))),
                           math.pow((p * E3_C1m[2] + q * E3_C1m[5]), (weight[2] * weight[5] / (1 - weight[2]))),
                           math.pow((p * E3_C1m[2] + q * E3_C1m[6]), (weight[2] * weight[6] / (1 - weight[2]))),
                           math.pow((p * E3_C1m[2] + q * E3_C1m[7]), (weight[2] * weight[7] / (1 - weight[2]))),
                           math.pow((p * E3_C1m[2] + q * E3_C1m[0]), (weight[2] * weight[0] / (1 - weight[2]))),
                           math.pow((p * E3_C1m[2] + q * E3_C1m[1]), (weight[2] * weight[1] / (1 - weight[2])))))

E3_F_PCoB_m4 = numpy.prod((math.pow((p * E3_C1m[3] + q * E3_C1m[4]), (weight[3] * weight[4] / (1 - weight[3]))),
                           math.pow((p * E3_C1m[3] + q * E3_C1m[5]), (weight[3] * weight[5] / (1 - weight[3]))),
                           math.pow((p * E3_C1m[3] + q * E3_C1m[6]), (weight[3] * weight[6] / (1 - weight[3]))),
                           math.pow((p * E3_C1m[3] + q * E3_C1m[7]), (weight[3] * weight[7] / (1 - weight[3]))),
                           math.pow((p * E3_C1m[3] + q * E3_C1m[0]), (weight[3] * weight[0] / (1 - weight[3]))),
                           math.pow((p * E3_C1m[3] + q * E3_C1m[1]), (weight[3] * weight[1] / (1 - weight[3]))),
                           math.pow((p * E3_C1m[3] + q * E3_C1m[2]), (weight[3] * weight[2] / (1 - weight[3])))))

E3_F_PCoB_m5 = numpy.prod((math.pow((p * E3_C1m[4] + q * E3_C1m[5]), (weight[4] * weight[5] / (1 - weight[4]))),
                           math.pow((p * E3_C1m[4] + q * E3_C1m[6]), (weight[4] * weight[6] / (1 - weight[4]))),
                           math.pow((p * E3_C1m[4] + q * E3_C1m[7]), (weight[4] * weight[7] / (1 - weight[4]))),
                           math.pow((p * E3_C1m[4] + q * E3_C1m[0]), (weight[4] * weight[0] / (1 - weight[4]))),
                           math.pow((p * E3_C1m[4] + q * E3_C1m[1]), (weight[4] * weight[1] / (1 - weight[4]))),
                           math.pow((p * E3_C1m[4] + q * E3_C1m[2]), (weight[4] * weight[2] / (1 - weight[4]))),
                           math.pow((p * E3_C1m[4] + q * E3_C1m[3]), (weight[4] * weight[3] / (1 - weight[4])))))

E3_F_PCoB_m6 = numpy.prod((math.pow((p * E3_C1m[5] + q * E3_C1m[6]), (weight[5] * weight[6] / (1 - weight[5]))),
                           math.pow((p * E3_C1m[5] + q * E3_C1m[7]), (weight[5] * weight[7] / (1 - weight[5]))),
                           math.pow((p * E3_C1m[5] + q * E3_C1m[0]), (weight[5] * weight[0] / (1 - weight[5]))),
                           math.pow((p * E3_C1m[5] + q * E3_C1m[1]), (weight[5] * weight[1] / (1 - weight[5]))),
                           math.pow((p * E3_C1m[5] + q * E3_C1m[2]), (weight[5] * weight[2] / (1 - weight[5]))),
                           math.pow((p * E3_C1m[5] + q * E3_C1m[3]), (weight[5] * weight[3] / (1 - weight[5]))),
                           math.pow((p * E3_C1m[5] + q * E3_C1m[4]), (weight[5] * weight[4] / (1 - weight[5])))))

E3_F_PCoB_m7 = numpy.prod((math.pow((p * E3_C1m[6] + q * E3_C1m[7]), (weight[6] * weight[7] / (1 - weight[6]))),
                           math.pow((p * E3_C1m[6] + q * E3_C1m[0]), (weight[6] * weight[0] / (1 - weight[6]))),
                           math.pow((p * E3_C1m[6] + q * E3_C1m[1]), (weight[6] * weight[1] / (1 - weight[6]))),
                           math.pow((p * E3_C1m[6] + q * E3_C1m[2]), (weight[6] * weight[2] / (1 - weight[6]))),
                           math.pow((p * E3_C1m[6] + q * E3_C1m[3]), (weight[6] * weight[3] / (1 - weight[6]))),
                           math.pow((p * E3_C1m[6] + q * E3_C1m[4]), (weight[6] * weight[4] / (1 - weight[6]))),
                           math.pow((p * E3_C1m[6] + q * E3_C1m[5]), (weight[6] * weight[5] / (1 - weight[6])))))

E3_F_PCoB_m8 = numpy.prod((math.pow((p * E3_C1m[7] + q * E3_C1m[0]), (weight[7] * weight[0] / (1 - weight[7]))),
                           math.pow((p * E3_C1m[7] + q * E3_C1m[1]), (weight[7] * weight[1] / (1 - weight[7]))),
                           math.pow((p * E3_C1m[7] + q * E3_C1m[2]), (weight[7] * weight[2] / (1 - weight[7]))),
                           math.pow((p * E3_C1m[7] + q * E3_C1m[3]), (weight[7] * weight[3] / (1 - weight[7]))),
                           math.pow((p * E3_C1m[7] + q * E3_C1m[4]), (weight[7] * weight[4] / (1 - weight[7]))),
                           math.pow((p * E3_C1m[7] + q * E3_C1m[5]), (weight[7] * weight[5] / (1 - weight[7]))),
                           math.pow((p * E3_C1m[7] + q * E3_C1m[6]), (weight[7] * weight[6] / (1 - weight[7])))))
E3_F_PCoB_m = a * numpy.prod(
    (E3_F_PCoB_m1, E3_F_PCoB_m2, E3_F_PCoB_m3, E3_F_PCoB_m4, E3_F_PCoB_m5, E3_F_PCoB_m6, E3_F_PCoB_m7, E3_F_PCoB_m8))
# </editor-fold>
# <editor-fold desc="E3_F_PCoB_u">
E3_F_PCoB_u1 = numpy.prod((math.pow((p * E3_C1u[0] + q * E3_C1u[1]), (weight[0] * weight[1] / (1 - weight[0]))),
                           math.pow((p * E3_C1u[0] + q * E3_C1u[2]), (weight[0] * weight[2] / (1 - weight[0]))),
                           math.pow((p * E3_C1u[0] + q * E3_C1u[3]), (weight[0] * weight[3] / (1 - weight[0]))),
                           math.pow((p * E3_C1u[0] + q * E3_C1u[4]), (weight[0] * weight[4] / (1 - weight[0]))),
                           math.pow((p * E3_C1u[0] + q * E3_C1u[5]), (weight[0] * weight[5] / (1 - weight[0]))),
                           math.pow((p * E3_C1u[0] + q * E3_C1u[6]), (weight[0] * weight[6] / (1 - weight[0]))),
                           math.pow((p * E3_C1u[0] + q * E3_C1u[7]), (weight[0] * weight[7] / (1 - weight[0])))))

E3_F_PCoB_u2 = numpy.prod((math.pow((p * E3_C1u[1] + q * E3_C1u[2]), (weight[1] * weight[2] / (1 - weight[1]))),
                           math.pow((p * E3_C1u[1] + q * E3_C1u[3]), (weight[1] * weight[3] / (1 - weight[1]))),
                           math.pow((p * E3_C1u[1] + q * E3_C1u[4]), (weight[1] * weight[4] / (1 - weight[1]))),
                           math.pow((p * E3_C1u[1] + q * E3_C1u[5]), (weight[1] * weight[5] / (1 - weight[1]))),
                           math.pow((p * E3_C1u[1] + q * E3_C1u[6]), (weight[1] * weight[6] / (1 - weight[1]))),
                           math.pow((p * E3_C1u[1] + q * E3_C1u[7]), (weight[1] * weight[7] / (1 - weight[1]))),
                           math.pow((p * E3_C1u[1] + q * E3_C1u[0]), (weight[1] * weight[0] / (1 - weight[1])))))

E3_F_PCoB_u3 = numpy.prod((math.pow((p * E3_C1u[2] + q * E3_C1u[3]), (weight[2] * weight[3] / (1 - weight[2]))),
                           math.pow((p * E3_C1u[2] + q * E3_C1u[4]), (weight[2] * weight[4] / (1 - weight[2]))),
                           math.pow((p * E3_C1u[2] + q * E3_C1u[5]), (weight[2] * weight[5] / (1 - weight[2]))),
                           math.pow((p * E3_C1u[2] + q * E3_C1u[6]), (weight[2] * weight[6] / (1 - weight[2]))),
                           math.pow((p * E3_C1u[2] + q * E3_C1u[7]), (weight[2] * weight[7] / (1 - weight[2]))),
                           math.pow((p * E3_C1u[2] + q * E3_C1u[0]), (weight[2] * weight[0] / (1 - weight[2]))),
                           math.pow((p * E3_C1u[2] + q * E3_C1u[1]), (weight[2] * weight[1] / (1 - weight[2])))))

E3_F_PCoB_u4 = numpy.prod((math.pow((p * E3_C1u[3] + q * E3_C1u[4]), (weight[3] * weight[4] / (1 - weight[3]))),
                           math.pow((p * E3_C1u[3] + q * E3_C1u[5]), (weight[3] * weight[5] / (1 - weight[3]))),
                           math.pow((p * E3_C1u[3] + q * E3_C1u[6]), (weight[3] * weight[6] / (1 - weight[3]))),
                           math.pow((p * E3_C1u[3] + q * E3_C1u[7]), (weight[3] * weight[7] / (1 - weight[3]))),
                           math.pow((p * E3_C1u[3] + q * E3_C1u[0]), (weight[3] * weight[0] / (1 - weight[3]))),
                           math.pow((p * E3_C1u[3] + q * E3_C1u[1]), (weight[3] * weight[1] / (1 - weight[3]))),
                           math.pow((p * E3_C1u[3] + q * E3_C1u[2]), (weight[3] * weight[2] / (1 - weight[3])))))

E3_F_PCoB_u5 = numpy.prod((math.pow((p * E3_C1u[4] + q * E3_C1u[5]), (weight[4] * weight[5] / (1 - weight[4]))),
                           math.pow((p * E3_C1u[4] + q * E3_C1u[6]), (weight[4] * weight[6] / (1 - weight[4]))),
                           math.pow((p * E3_C1u[4] + q * E3_C1u[7]), (weight[4] * weight[7] / (1 - weight[4]))),
                           math.pow((p * E3_C1u[4] + q * E3_C1u[0]), (weight[4] * weight[0] / (1 - weight[4]))),
                           math.pow((p * E3_C1u[4] + q * E3_C1u[1]), (weight[4] * weight[1] / (1 - weight[4]))),
                           math.pow((p * E3_C1u[4] + q * E3_C1u[2]), (weight[4] * weight[2] / (1 - weight[4]))),
                           math.pow((p * E3_C1u[4] + q * E3_C1u[3]), (weight[4] * weight[3] / (1 - weight[4])))))

E3_F_PCoB_u6 = numpy.prod((math.pow((p * E3_C1u[5] + q * E3_C1u[6]), (weight[5] * weight[6] / (1 - weight[5]))),
                           math.pow((p * E3_C1u[5] + q * E3_C1u[7]), (weight[5] * weight[7] / (1 - weight[5]))),
                           math.pow((p * E3_C1u[5] + q * E3_C1u[0]), (weight[5] * weight[0] / (1 - weight[5]))),
                           math.pow((p * E3_C1u[5] + q * E3_C1u[1]), (weight[5] * weight[1] / (1 - weight[5]))),
                           math.pow((p * E3_C1u[5] + q * E3_C1u[2]), (weight[5] * weight[2] / (1 - weight[5]))),
                           math.pow((p * E3_C1u[5] + q * E3_C1u[3]), (weight[5] * weight[3] / (1 - weight[5]))),
                           math.pow((p * E3_C1u[5] + q * E3_C1u[4]), (weight[5] * weight[4] / (1 - weight[5])))))

E3_F_PCoB_u7 = numpy.prod((math.pow((p * E3_C1u[6] + q * E3_C1u[7]), (weight[6] * weight[7] / (1 - weight[6]))),
                           math.pow((p * E3_C1u[6] + q * E3_C1u[0]), (weight[6] * weight[0] / (1 - weight[6]))),
                           math.pow((p * E3_C1u[6] + q * E3_C1u[1]), (weight[6] * weight[1] / (1 - weight[6]))),
                           math.pow((p * E3_C1u[6] + q * E3_C1u[2]), (weight[6] * weight[2] / (1 - weight[6]))),
                           math.pow((p * E3_C1u[6] + q * E3_C1u[3]), (weight[6] * weight[3] / (1 - weight[6]))),
                           math.pow((p * E3_C1u[6] + q * E3_C1u[4]), (weight[6] * weight[4] / (1 - weight[6]))),
                           math.pow((p * E3_C1u[6] + q * E3_C1u[5]), (weight[6] * weight[5] / (1 - weight[6])))))

E3_F_PCoB_u8 = numpy.prod((math.pow((p * E3_C1u[7] + q * E3_C1u[0]), (weight[7] * weight[0] / (1 - weight[7]))),
                           math.pow((p * E3_C1u[7] + q * E3_C1u[1]), (weight[7] * weight[1] / (1 - weight[7]))),
                           math.pow((p * E3_C1u[7] + q * E3_C1u[2]), (weight[7] * weight[2] / (1 - weight[7]))),
                           math.pow((p * E3_C1u[7] + q * E3_C1u[3]), (weight[7] * weight[3] / (1 - weight[7]))),
                           math.pow((p * E3_C1u[7] + q * E3_C1u[4]), (weight[7] * weight[4] / (1 - weight[7]))),
                           math.pow((p * E3_C1u[7] + q * E3_C1u[5]), (weight[7] * weight[5] / (1 - weight[7]))),
                           math.pow((p * E3_C1u[7] + q * E3_C1u[6]), (weight[7] * weight[6] / (1 - weight[7])))))
E3_F_PCoB_u = a * numpy.prod(
    (E3_F_PCoB_u1, E3_F_PCoB_u2, E3_F_PCoB_u3, E3_F_PCoB_u4, E3_F_PCoB_u5, E3_F_PCoB_u6, E3_F_PCoB_u7, E3_F_PCoB_u8))
# </editor-fold>
# print(E3_F_PCoB_l)
# print(E3_F_PCoB_m)
# print(E3_F_PCoB_u)
E3_PCoB = (E3_F_PCoB_l + 4 * E3_F_PCoB_m + E3_F_PCoB_u) / 6

# E4
# <editor-fold desc="E4_F_SCoB_l">
E4_F_SCoB_l1 = sum(
    ((((weight[0] * weight[1] / (1 - weight[0])) * math.pow(E4_C1l[0], p) * math.pow(E4_C1l[1], q)),
      ((weight[0] * weight[2] / (1 - weight[0])) * math.pow(E4_C1l[0], p) * math.pow(E4_C1l[2], q)),
      ((weight[0] * weight[3] / (1 - weight[0])) * math.pow(E4_C1l[0], p) * math.pow(E4_C1l[3], q)),
      ((weight[0] * weight[4] / (1 - weight[0])) * math.pow(E4_C1l[0], p) * math.pow(E4_C1l[4], q)),
      ((weight[0] * weight[5] / (1 - weight[0])) * math.pow(E4_C1l[0], p) * math.pow(E4_C1l[5], q)),
      ((weight[0] * weight[6] / (1 - weight[0])) * math.pow(E4_C1l[0], p) * math.pow(E4_C1l[6], q)),
      ((weight[0] * weight[7] / (1 - weight[0])) * math.pow(E4_C1l[0], p) * math.pow(E4_C1l[2], q)))))

E4_F_SCoB_l2 = sum(
    ((((weight[1] * weight[2] / (1 - weight[1])) * math.pow(E4_C1l[1], p) * math.pow(E4_C1l[2], q)),
      ((weight[1] * weight[3] / (1 - weight[1])) * math.pow(E4_C1l[1], p) * math.pow(E4_C1l[3], q)),
      ((weight[1] * weight[4] / (1 - weight[1])) * math.pow(E4_C1l[1], p) * math.pow(E4_C1l[4], q)),
      ((weight[1] * weight[5] / (1 - weight[1])) * math.pow(E4_C1l[1], p) * math.pow(E4_C1l[5], q)),
      ((weight[1] * weight[6] / (1 - weight[1])) * math.pow(E4_C1l[1], p) * math.pow(E4_C1l[6], q)),
      ((weight[1] * weight[7] / (1 - weight[1])) * math.pow(E4_C1l[1], p) * math.pow(E4_C1l[7], q)),
      ((weight[1] * weight[0] / (1 - weight[1])) * math.pow(E4_C1l[1], p) * math.pow(E4_C1l[0], q)))))

E4_F_SCoB_l3 = sum(
    ((((weight[2] * weight[3] / (1 - weight[2])) * math.pow(E4_C1l[2], p) * math.pow(E4_C1l[3], q)),
      ((weight[2] * weight[4] / (1 - weight[2])) * math.pow(E4_C1l[2], p) * math.pow(E4_C1l[4], q)),
      ((weight[2] * weight[5] / (1 - weight[2])) * math.pow(E4_C1l[2], p) * math.pow(E4_C1l[5], q)),
      ((weight[2] * weight[6] / (1 - weight[2])) * math.pow(E4_C1l[2], p) * math.pow(E4_C1l[6], q)),
      ((weight[2] * weight[7] / (1 - weight[2])) * math.pow(E4_C1l[2], p) * math.pow(E4_C1l[7], q)),
      ((weight[2] * weight[0] / (1 - weight[2])) * math.pow(E4_C1l[2], p) * math.pow(E4_C1l[0], q)),
      ((weight[2] * weight[1] / (1 - weight[2])) * math.pow(E4_C1l[2], p) * math.pow(E4_C1l[1], q)))))

E4_F_SCoB_l4 = sum(
    ((((weight[3] * weight[4] / (1 - weight[3])) * math.pow(E4_C1l[3], p) * math.pow(E4_C1l[4], q)),
      ((weight[3] * weight[5] / (1 - weight[3])) * math.pow(E4_C1l[3], p) * math.pow(E4_C1l[5], q)),
      ((weight[3] * weight[6] / (1 - weight[3])) * math.pow(E4_C1l[3], p) * math.pow(E4_C1l[6], q)),
      ((weight[3] * weight[7] / (1 - weight[3])) * math.pow(E4_C1l[3], p) * math.pow(E4_C1l[7], q)),
      ((weight[3] * weight[0] / (1 - weight[3])) * math.pow(E4_C1l[3], p) * math.pow(E4_C1l[0], q)),
      ((weight[3] * weight[1] / (1 - weight[3])) * math.pow(E4_C1l[3], p) * math.pow(E4_C1l[1], q)),
      ((weight[3] * weight[2] / (1 - weight[3])) * math.pow(E4_C1l[3], p) * math.pow(E4_C1l[2], q)))))

E4_F_SCoB_l5 = sum(
    ((((weight[4] * weight[5] / (1 - weight[4])) * math.pow(E4_C1l[4], p) * math.pow(E4_C1l[5], q)),
      ((weight[4] * weight[6] / (1 - weight[4])) * math.pow(E4_C1l[4], p) * math.pow(E4_C1l[6], q)),
      ((weight[4] * weight[7] / (1 - weight[4])) * math.pow(E4_C1l[4], p) * math.pow(E4_C1l[7], q)),
      ((weight[4] * weight[0] / (1 - weight[4])) * math.pow(E4_C1l[4], p) * math.pow(E4_C1l[0], q)),
      ((weight[4] * weight[1] / (1 - weight[4])) * math.pow(E4_C1l[4], p) * math.pow(E4_C1l[1], q)),
      ((weight[4] * weight[2] / (1 - weight[4])) * math.pow(E4_C1l[4], p) * math.pow(E4_C1l[2], q)),
      ((weight[4] * weight[3] / (1 - weight[4])) * math.pow(E4_C1l[4], p) * math.pow(E4_C1l[3], q)))))

E4_F_SCoB_l6 = sum(
    ((((weight[5] * weight[6] / (1 - weight[5])) * math.pow(E4_C1l[5], p) * math.pow(E4_C1l[6], q)),
      ((weight[5] * weight[7] / (1 - weight[5])) * math.pow(E4_C1l[5], p) * math.pow(E4_C1l[7], q)),
      ((weight[5] * weight[0] / (1 - weight[5])) * math.pow(E4_C1l[5], p) * math.pow(E4_C1l[0], q)),
      ((weight[5] * weight[1] / (1 - weight[5])) * math.pow(E4_C1l[5], p) * math.pow(E4_C1l[1], q)),
      ((weight[5] * weight[2] / (1 - weight[5])) * math.pow(E4_C1l[5], p) * math.pow(E4_C1l[2], q)),
      ((weight[5] * weight[3] / (1 - weight[5])) * math.pow(E4_C1l[5], p) * math.pow(E4_C1l[3], q)),
      ((weight[5] * weight[4] / (1 - weight[5])) * math.pow(E4_C1l[5], p) * math.pow(E4_C1l[4], q)))))

E4_F_SCoB_l7 = sum(
    ((((weight[6] * weight[7] / (1 - weight[6])) * math.pow(E4_C1l[6], p) * math.pow(E4_C1l[7], q)),
      ((weight[6] * weight[0] / (1 - weight[6])) * math.pow(E4_C1l[6], p) * math.pow(E4_C1l[0], q)),
      ((weight[6] * weight[1] / (1 - weight[6])) * math.pow(E4_C1l[6], p) * math.pow(E4_C1l[1], q)),
      ((weight[6] * weight[2] / (1 - weight[6])) * math.pow(E4_C1l[6], p) * math.pow(E4_C1l[2], q)),
      ((weight[6] * weight[3] / (1 - weight[6])) * math.pow(E4_C1l[6], p) * math.pow(E4_C1l[3], q)),
      ((weight[6] * weight[4] / (1 - weight[6])) * math.pow(E4_C1l[6], p) * math.pow(E4_C1l[4], q)),
      ((weight[6] * weight[5] / (1 - weight[6])) * math.pow(E4_C1l[6], p) * math.pow(E4_C1l[5], q)))))

E4_F_SCoB_l8 = sum(
    ((((weight[7] * weight[0] / (1 - weight[7])) * math.pow(E4_C1l[7], p) * math.pow(E4_C1l[0], q)),
      ((weight[7] * weight[1] / (1 - weight[7])) * math.pow(E4_C1l[7], p) * math.pow(E4_C1l[1], q)),
      ((weight[7] * weight[2] / (1 - weight[7])) * math.pow(E4_C1l[7], p) * math.pow(E4_C1l[2], q)),
      ((weight[7] * weight[3] / (1 - weight[7])) * math.pow(E4_C1l[7], p) * math.pow(E4_C1l[3], q)),
      ((weight[7] * weight[4] / (1 - weight[7])) * math.pow(E4_C1l[7], p) * math.pow(E4_C1l[4], q)),
      ((weight[7] * weight[5] / (1 - weight[7])) * math.pow(E4_C1l[7], p) * math.pow(E4_C1l[5], q)),
      ((weight[7] * weight[6] / (1 - weight[7])) * math.pow(E4_C1l[7], p) * math.pow(E4_C1l[6], q)))))
E4_F_SCoB_l = pow(sum(
    (E4_F_SCoB_l1, E4_F_SCoB_l2, E4_F_SCoB_l3, E4_F_SCoB_l4, E4_F_SCoB_l5, E4_F_SCoB_l6, E4_F_SCoB_l7, E4_F_SCoB_l8)),
    a)
# </editor-fold>
# <editor-fold desc="E4_F_SCoB_m">
E4_F_SCoB_m1 = sum(
    ((((weight[0] * weight[1] / (1 - weight[0])) * math.pow(E4_C1m[0], p) * math.pow(E4_C1m[1], q)),
      ((weight[0] * weight[2] / (1 - weight[0])) * math.pow(E4_C1m[0], p) * math.pow(E4_C1m[2], q)),
      ((weight[0] * weight[3] / (1 - weight[0])) * math.pow(E4_C1m[0], p) * math.pow(E4_C1m[3], q)),
      ((weight[0] * weight[4] / (1 - weight[0])) * math.pow(E4_C1m[0], p) * math.pow(E4_C1m[4], q)),
      ((weight[0] * weight[5] / (1 - weight[0])) * math.pow(E4_C1m[0], p) * math.pow(E4_C1m[5], q)),
      ((weight[0] * weight[6] / (1 - weight[0])) * math.pow(E4_C1m[0], p) * math.pow(E4_C1m[6], q)),
      ((weight[0] * weight[7] / (1 - weight[0])) * math.pow(E4_C1m[0], p) * math.pow(E4_C1m[2], q)))))

E4_F_SCoB_m2 = sum(
    ((((weight[1] * weight[2] / (1 - weight[1])) * math.pow(E4_C1m[1], p) * math.pow(E4_C1m[2], q)),
      ((weight[1] * weight[3] / (1 - weight[1])) * math.pow(E4_C1m[1], p) * math.pow(E4_C1m[3], q)),
      ((weight[1] * weight[4] / (1 - weight[1])) * math.pow(E4_C1m[1], p) * math.pow(E4_C1m[4], q)),
      ((weight[1] * weight[5] / (1 - weight[1])) * math.pow(E4_C1m[1], p) * math.pow(E4_C1m[5], q)),
      ((weight[1] * weight[6] / (1 - weight[1])) * math.pow(E4_C1m[1], p) * math.pow(E4_C1m[6], q)),
      ((weight[1] * weight[7] / (1 - weight[1])) * math.pow(E4_C1m[1], p) * math.pow(E4_C1m[7], q)),
      ((weight[1] * weight[0] / (1 - weight[1])) * math.pow(E4_C1m[1], p) * math.pow(E4_C1m[0], q)))))

E4_F_SCoB_m3 = sum(
    ((((weight[2] * weight[3] / (1 - weight[2])) * math.pow(E4_C1m[2], p) * math.pow(E4_C1m[3], q)),
      ((weight[2] * weight[4] / (1 - weight[2])) * math.pow(E4_C1m[2], p) * math.pow(E4_C1m[4], q)),
      ((weight[2] * weight[5] / (1 - weight[2])) * math.pow(E4_C1m[2], p) * math.pow(E4_C1m[5], q)),
      ((weight[2] * weight[6] / (1 - weight[2])) * math.pow(E4_C1m[2], p) * math.pow(E4_C1m[6], q)),
      ((weight[2] * weight[7] / (1 - weight[2])) * math.pow(E4_C1m[2], p) * math.pow(E4_C1m[7], q)),
      ((weight[2] * weight[0] / (1 - weight[2])) * math.pow(E4_C1m[2], p) * math.pow(E4_C1m[0], q)),
      ((weight[2] * weight[1] / (1 - weight[2])) * math.pow(E4_C1m[2], p) * math.pow(E4_C1m[1], q)))))

E4_F_SCoB_m4 = sum(
    ((((weight[3] * weight[4] / (1 - weight[3])) * math.pow(E4_C1m[3], p) * math.pow(E4_C1m[4], q)),
      ((weight[3] * weight[5] / (1 - weight[3])) * math.pow(E4_C1m[3], p) * math.pow(E4_C1m[5], q)),
      ((weight[3] * weight[6] / (1 - weight[3])) * math.pow(E4_C1m[3], p) * math.pow(E4_C1m[6], q)),
      ((weight[3] * weight[7] / (1 - weight[3])) * math.pow(E4_C1m[3], p) * math.pow(E4_C1m[7], q)),
      ((weight[3] * weight[0] / (1 - weight[3])) * math.pow(E4_C1m[3], p) * math.pow(E4_C1m[0], q)),
      ((weight[3] * weight[1] / (1 - weight[3])) * math.pow(E4_C1m[3], p) * math.pow(E4_C1m[1], q)),
      ((weight[3] * weight[2] / (1 - weight[3])) * math.pow(E4_C1m[3], p) * math.pow(E4_C1m[2], q)))))

E4_F_SCoB_m5 = sum(
    ((((weight[4] * weight[5] / (1 - weight[4])) * math.pow(E4_C1m[4], p) * math.pow(E4_C1m[5], q)),
      ((weight[4] * weight[6] / (1 - weight[4])) * math.pow(E4_C1m[4], p) * math.pow(E4_C1m[6], q)),
      ((weight[4] * weight[7] / (1 - weight[4])) * math.pow(E4_C1m[4], p) * math.pow(E4_C1m[7], q)),
      ((weight[4] * weight[0] / (1 - weight[4])) * math.pow(E4_C1m[4], p) * math.pow(E4_C1m[0], q)),
      ((weight[4] * weight[1] / (1 - weight[4])) * math.pow(E4_C1m[4], p) * math.pow(E4_C1m[1], q)),
      ((weight[4] * weight[2] / (1 - weight[4])) * math.pow(E4_C1m[4], p) * math.pow(E4_C1m[2], q)),
      ((weight[4] * weight[3] / (1 - weight[4])) * math.pow(E4_C1m[4], p) * math.pow(E4_C1m[3], q)))))

E4_F_SCoB_m6 = sum(
    ((((weight[5] * weight[6] / (1 - weight[5])) * math.pow(E4_C1m[5], p) * math.pow(E4_C1m[6], q)),
      ((weight[5] * weight[7] / (1 - weight[5])) * math.pow(E4_C1m[5], p) * math.pow(E4_C1m[7], q)),
      ((weight[5] * weight[0] / (1 - weight[5])) * math.pow(E4_C1m[5], p) * math.pow(E4_C1m[0], q)),
      ((weight[5] * weight[1] / (1 - weight[5])) * math.pow(E4_C1m[5], p) * math.pow(E4_C1m[1], q)),
      ((weight[5] * weight[2] / (1 - weight[5])) * math.pow(E4_C1m[5], p) * math.pow(E4_C1m[2], q)),
      ((weight[5] * weight[3] / (1 - weight[5])) * math.pow(E4_C1m[5], p) * math.pow(E4_C1m[3], q)),
      ((weight[5] * weight[4] / (1 - weight[5])) * math.pow(E4_C1m[5], p) * math.pow(E4_C1m[4], q)))))

E4_F_SCoB_m7 = sum(
    ((((weight[6] * weight[7] / (1 - weight[6])) * math.pow(E4_C1m[6], p) * math.pow(E4_C1m[7], q)),
      ((weight[6] * weight[0] / (1 - weight[6])) * math.pow(E4_C1m[6], p) * math.pow(E4_C1m[0], q)),
      ((weight[6] * weight[1] / (1 - weight[6])) * math.pow(E4_C1m[6], p) * math.pow(E4_C1m[1], q)),
      ((weight[6] * weight[2] / (1 - weight[6])) * math.pow(E4_C1m[6], p) * math.pow(E4_C1m[2], q)),
      ((weight[6] * weight[3] / (1 - weight[6])) * math.pow(E4_C1m[6], p) * math.pow(E4_C1m[3], q)),
      ((weight[6] * weight[4] / (1 - weight[6])) * math.pow(E4_C1m[6], p) * math.pow(E4_C1m[4], q)),
      ((weight[6] * weight[5] / (1 - weight[6])) * math.pow(E4_C1m[6], p) * math.pow(E4_C1m[5], q)))))

E4_F_SCoB_m8 = sum(
    ((((weight[7] * weight[0] / (1 - weight[7])) * math.pow(E4_C1m[7], p) * math.pow(E4_C1m[0], q)),
      ((weight[7] * weight[1] / (1 - weight[7])) * math.pow(E4_C1m[7], p) * math.pow(E4_C1m[1], q)),
      ((weight[7] * weight[2] / (1 - weight[7])) * math.pow(E4_C1m[7], p) * math.pow(E4_C1m[2], q)),
      ((weight[7] * weight[3] / (1 - weight[7])) * math.pow(E4_C1m[7], p) * math.pow(E4_C1m[3], q)),
      ((weight[7] * weight[4] / (1 - weight[7])) * math.pow(E4_C1m[7], p) * math.pow(E4_C1m[4], q)),
      ((weight[7] * weight[5] / (1 - weight[7])) * math.pow(E4_C1m[7], p) * math.pow(E4_C1m[5], q)),
      ((weight[7] * weight[6] / (1 - weight[7])) * math.pow(E4_C1m[7], p) * math.pow(E4_C1m[6], q)))))
E4_F_SCoB_m = pow(sum(
    (E4_F_SCoB_m1, E4_F_SCoB_m2, E4_F_SCoB_m3, E4_F_SCoB_m4, E4_F_SCoB_m5, E4_F_SCoB_m6, E4_F_SCoB_m7, E4_F_SCoB_m8)),
    a)
# </editor-fold>
# <editor-fold desc="E4_F_SCoB_u">
E4_F_SCoB_u1 = sum(
    ((((weight[0] * weight[1] / (1 - weight[0])) * math.pow(E4_C1u[0], p) * math.pow(E4_C1u[1], q)),
      ((weight[0] * weight[2] / (1 - weight[0])) * math.pow(E4_C1u[0], p) * math.pow(E4_C1u[2], q)),
      ((weight[0] * weight[3] / (1 - weight[0])) * math.pow(E4_C1u[0], p) * math.pow(E4_C1u[3], q)),
      ((weight[0] * weight[4] / (1 - weight[0])) * math.pow(E4_C1u[0], p) * math.pow(E4_C1u[4], q)),
      ((weight[0] * weight[5] / (1 - weight[0])) * math.pow(E4_C1u[0], p) * math.pow(E4_C1u[5], q)),
      ((weight[0] * weight[6] / (1 - weight[0])) * math.pow(E4_C1u[0], p) * math.pow(E4_C1u[6], q)),
      ((weight[0] * weight[7] / (1 - weight[0])) * math.pow(E4_C1u[0], p) * math.pow(E4_C1u[2], q)))))

E4_F_SCoB_u2 = sum(
    ((((weight[1] * weight[2] / (1 - weight[1])) * math.pow(E4_C1u[1], p) * math.pow(E4_C1u[2], q)),
      ((weight[1] * weight[3] / (1 - weight[1])) * math.pow(E4_C1u[1], p) * math.pow(E4_C1u[3], q)),
      ((weight[1] * weight[4] / (1 - weight[1])) * math.pow(E4_C1u[1], p) * math.pow(E4_C1u[4], q)),
      ((weight[1] * weight[5] / (1 - weight[1])) * math.pow(E4_C1u[1], p) * math.pow(E4_C1u[5], q)),
      ((weight[1] * weight[6] / (1 - weight[1])) * math.pow(E4_C1u[1], p) * math.pow(E4_C1u[6], q)),
      ((weight[1] * weight[7] / (1 - weight[1])) * math.pow(E4_C1u[1], p) * math.pow(E4_C1u[7], q)),
      ((weight[1] * weight[0] / (1 - weight[1])) * math.pow(E4_C1u[1], p) * math.pow(E4_C1u[0], q)))))

E4_F_SCoB_u3 = sum(
    ((((weight[2] * weight[3] / (1 - weight[2])) * math.pow(E4_C1u[2], p) * math.pow(E4_C1u[3], q)),
      ((weight[2] * weight[4] / (1 - weight[2])) * math.pow(E4_C1u[2], p) * math.pow(E4_C1u[4], q)),
      ((weight[2] * weight[5] / (1 - weight[2])) * math.pow(E4_C1u[2], p) * math.pow(E4_C1u[5], q)),
      ((weight[2] * weight[6] / (1 - weight[2])) * math.pow(E4_C1u[2], p) * math.pow(E4_C1u[6], q)),
      ((weight[2] * weight[7] / (1 - weight[2])) * math.pow(E4_C1u[2], p) * math.pow(E4_C1u[7], q)),
      ((weight[2] * weight[0] / (1 - weight[2])) * math.pow(E4_C1u[2], p) * math.pow(E4_C1u[0], q)),
      ((weight[2] * weight[1] / (1 - weight[2])) * math.pow(E4_C1u[2], p) * math.pow(E4_C1u[1], q)))))

E4_F_SCoB_u4 = sum(
    ((((weight[3] * weight[4] / (1 - weight[3])) * math.pow(E4_C1u[3], p) * math.pow(E4_C1u[4], q)),
      ((weight[3] * weight[5] / (1 - weight[3])) * math.pow(E4_C1u[3], p) * math.pow(E4_C1u[5], q)),
      ((weight[3] * weight[6] / (1 - weight[3])) * math.pow(E4_C1u[3], p) * math.pow(E4_C1u[6], q)),
      ((weight[3] * weight[7] / (1 - weight[3])) * math.pow(E4_C1u[3], p) * math.pow(E4_C1u[7], q)),
      ((weight[3] * weight[0] / (1 - weight[3])) * math.pow(E4_C1u[3], p) * math.pow(E4_C1u[0], q)),
      ((weight[3] * weight[1] / (1 - weight[3])) * math.pow(E4_C1u[3], p) * math.pow(E4_C1u[1], q)),
      ((weight[3] * weight[2] / (1 - weight[3])) * math.pow(E4_C1u[3], p) * math.pow(E4_C1u[2], q)))))

E4_F_SCoB_u5 = sum(
    ((((weight[4] * weight[5] / (1 - weight[4])) * math.pow(E4_C1u[4], p) * math.pow(E4_C1u[5], q)),
      ((weight[4] * weight[6] / (1 - weight[4])) * math.pow(E4_C1u[4], p) * math.pow(E4_C1u[6], q)),
      ((weight[4] * weight[7] / (1 - weight[4])) * math.pow(E4_C1u[4], p) * math.pow(E4_C1u[7], q)),
      ((weight[4] * weight[0] / (1 - weight[4])) * math.pow(E4_C1u[4], p) * math.pow(E4_C1u[0], q)),
      ((weight[4] * weight[1] / (1 - weight[4])) * math.pow(E4_C1u[4], p) * math.pow(E4_C1u[1], q)),
      ((weight[4] * weight[2] / (1 - weight[4])) * math.pow(E4_C1u[4], p) * math.pow(E4_C1u[2], q)),
      ((weight[4] * weight[3] / (1 - weight[4])) * math.pow(E4_C1u[4], p) * math.pow(E4_C1u[3], q)))))

E4_F_SCoB_u6 = sum(
    ((((weight[5] * weight[6] / (1 - weight[5])) * math.pow(E4_C1u[5], p) * math.pow(E4_C1u[6], q)),
      ((weight[5] * weight[7] / (1 - weight[5])) * math.pow(E4_C1u[5], p) * math.pow(E4_C1u[7], q)),
      ((weight[5] * weight[0] / (1 - weight[5])) * math.pow(E4_C1u[5], p) * math.pow(E4_C1u[0], q)),
      ((weight[5] * weight[1] / (1 - weight[5])) * math.pow(E4_C1u[5], p) * math.pow(E4_C1u[1], q)),
      ((weight[5] * weight[2] / (1 - weight[5])) * math.pow(E4_C1u[5], p) * math.pow(E4_C1u[2], q)),
      ((weight[5] * weight[3] / (1 - weight[5])) * math.pow(E4_C1u[5], p) * math.pow(E4_C1u[3], q)),
      ((weight[5] * weight[4] / (1 - weight[5])) * math.pow(E4_C1u[5], p) * math.pow(E4_C1u[4], q)))))

E4_F_SCoB_u7 = sum(
    ((((weight[6] * weight[7] / (1 - weight[6])) * math.pow(E4_C1u[6], p) * math.pow(E4_C1u[7], q)),
      ((weight[6] * weight[0] / (1 - weight[6])) * math.pow(E4_C1u[6], p) * math.pow(E4_C1u[0], q)),
      ((weight[6] * weight[1] / (1 - weight[6])) * math.pow(E4_C1u[6], p) * math.pow(E4_C1u[1], q)),
      ((weight[6] * weight[2] / (1 - weight[6])) * math.pow(E4_C1u[6], p) * math.pow(E4_C1u[2], q)),
      ((weight[6] * weight[3] / (1 - weight[6])) * math.pow(E4_C1u[6], p) * math.pow(E4_C1u[3], q)),
      ((weight[6] * weight[4] / (1 - weight[6])) * math.pow(E4_C1u[6], p) * math.pow(E4_C1u[4], q)),
      ((weight[6] * weight[5] / (1 - weight[6])) * math.pow(E4_C1u[6], p) * math.pow(E4_C1u[5], q)))))

E4_F_SCoB_u8 = sum(
    ((((weight[7] * weight[0] / (1 - weight[7])) * math.pow(E4_C1u[7], p) * math.pow(E4_C1u[0], q)),
      ((weight[7] * weight[1] / (1 - weight[7])) * math.pow(E4_C1u[7], p) * math.pow(E4_C1u[1], q)),
      ((weight[7] * weight[2] / (1 - weight[7])) * math.pow(E4_C1u[7], p) * math.pow(E4_C1u[2], q)),
      ((weight[7] * weight[3] / (1 - weight[7])) * math.pow(E4_C1u[7], p) * math.pow(E4_C1u[3], q)),
      ((weight[7] * weight[4] / (1 - weight[7])) * math.pow(E4_C1u[7], p) * math.pow(E4_C1u[4], q)),
      ((weight[7] * weight[5] / (1 - weight[7])) * math.pow(E4_C1u[7], p) * math.pow(E4_C1u[5], q)),
      ((weight[7] * weight[6] / (1 - weight[7])) * math.pow(E4_C1u[7], p) * math.pow(E4_C1u[6], q)))))
E4_F_SCoB_u = pow(sum(
    (E4_F_SCoB_u1, E4_F_SCoB_u2, E4_F_SCoB_u3, E4_F_SCoB_u4, E4_F_SCoB_u5, E4_F_SCoB_u6, E4_F_SCoB_u7, E4_F_SCoB_u8)),
    a)
# </editor-fold>
# print(E4_F_SCoB_l)
# print(E4_F_SCoB_m)
# print(E4_F_SCoB_u)
E4_SCoB = (E4_F_SCoB_l + 4 * E4_F_SCoB_m + E4_F_SCoB_u) / 6

# <editor-fold desc="E4_F_PCoB_l">
E4_F_PCoB_l1 = numpy.prod((math.pow((p * E4_C1l[0] + q * E4_C1l[1]), (weight[0] * weight[1] / (1 - weight[0]))),
                           math.pow((p * E4_C1l[0] + q * E4_C1l[2]), (weight[0] * weight[2] / (1 - weight[0]))),
                           math.pow((p * E4_C1l[0] + q * E4_C1l[3]), (weight[0] * weight[3] / (1 - weight[0]))),
                           math.pow((p * E4_C1l[0] + q * E4_C1l[4]), (weight[0] * weight[4] / (1 - weight[0]))),
                           math.pow((p * E4_C1l[0] + q * E4_C1l[5]), (weight[0] * weight[5] / (1 - weight[0]))),
                           math.pow((p * E4_C1l[0] + q * E4_C1l[6]), (weight[0] * weight[6] / (1 - weight[0]))),
                           math.pow((p * E4_C1l[0] + q * E4_C1l[7]), (weight[0] * weight[7] / (1 - weight[0])))))

E4_F_PCoB_l2 = numpy.prod((math.pow((p * E4_C1l[1] + q * E4_C1l[2]), (weight[1] * weight[2] / (1 - weight[1]))),
                           math.pow((p * E4_C1l[1] + q * E4_C1l[3]), (weight[1] * weight[3] / (1 - weight[1]))),
                           math.pow((p * E4_C1l[1] + q * E4_C1l[4]), (weight[1] * weight[4] / (1 - weight[1]))),
                           math.pow((p * E4_C1l[1] + q * E4_C1l[5]), (weight[1] * weight[5] / (1 - weight[1]))),
                           math.pow((p * E4_C1l[1] + q * E4_C1l[6]), (weight[1] * weight[6] / (1 - weight[1]))),
                           math.pow((p * E4_C1l[1] + q * E4_C1l[7]), (weight[1] * weight[7] / (1 - weight[1]))),
                           math.pow((p * E4_C1l[1] + q * E4_C1l[0]), (weight[1] * weight[0] / (1 - weight[1])))))

E4_F_PCoB_l3 = numpy.prod((math.pow((p * E4_C1l[2] + q * E4_C1l[3]), (weight[2] * weight[3] / (1 - weight[2]))),
                           math.pow((p * E4_C1l[2] + q * E4_C1l[4]), (weight[2] * weight[4] / (1 - weight[2]))),
                           math.pow((p * E4_C1l[2] + q * E4_C1l[5]), (weight[2] * weight[5] / (1 - weight[2]))),
                           math.pow((p * E4_C1l[2] + q * E4_C1l[6]), (weight[2] * weight[6] / (1 - weight[2]))),
                           math.pow((p * E4_C1l[2] + q * E4_C1l[7]), (weight[2] * weight[7] / (1 - weight[2]))),
                           math.pow((p * E4_C1l[2] + q * E4_C1l[0]), (weight[2] * weight[0] / (1 - weight[2]))),
                           math.pow((p * E4_C1l[2] + q * E4_C1l[1]), (weight[2] * weight[1] / (1 - weight[2])))))

E4_F_PCoB_l4 = numpy.prod((math.pow((p * E4_C1l[3] + q * E4_C1l[4]), (weight[3] * weight[4] / (1 - weight[3]))),
                           math.pow((p * E4_C1l[3] + q * E4_C1l[5]), (weight[3] * weight[5] / (1 - weight[3]))),
                           math.pow((p * E4_C1l[3] + q * E4_C1l[6]), (weight[3] * weight[6] / (1 - weight[3]))),
                           math.pow((p * E4_C1l[3] + q * E4_C1l[7]), (weight[3] * weight[7] / (1 - weight[3]))),
                           math.pow((p * E4_C1l[3] + q * E4_C1l[0]), (weight[3] * weight[0] / (1 - weight[3]))),
                           math.pow((p * E4_C1l[3] + q * E4_C1l[1]), (weight[3] * weight[1] / (1 - weight[3]))),
                           math.pow((p * E4_C1l[3] + q * E4_C1l[2]), (weight[3] * weight[2] / (1 - weight[3])))))

E4_F_PCoB_l5 = numpy.prod((math.pow((p * E4_C1l[4] + q * E4_C1l[5]), (weight[4] * weight[5] / (1 - weight[4]))),
                           math.pow((p * E4_C1l[4] + q * E4_C1l[6]), (weight[4] * weight[6] / (1 - weight[4]))),
                           math.pow((p * E4_C1l[4] + q * E4_C1l[7]), (weight[4] * weight[7] / (1 - weight[4]))),
                           math.pow((p * E4_C1l[4] + q * E4_C1l[0]), (weight[4] * weight[0] / (1 - weight[4]))),
                           math.pow((p * E4_C1l[4] + q * E4_C1l[1]), (weight[4] * weight[1] / (1 - weight[4]))),
                           math.pow((p * E4_C1l[4] + q * E4_C1l[2]), (weight[4] * weight[2] / (1 - weight[4]))),
                           math.pow((p * E4_C1l[4] + q * E4_C1l[3]), (weight[4] * weight[3] / (1 - weight[4])))))

E4_F_PCoB_l6 = numpy.prod((math.pow((p * E4_C1l[5] + q * E4_C1l[6]), (weight[5] * weight[6] / (1 - weight[5]))),
                           math.pow((p * E4_C1l[5] + q * E4_C1l[7]), (weight[5] * weight[7] / (1 - weight[5]))),
                           math.pow((p * E4_C1l[5] + q * E4_C1l[0]), (weight[5] * weight[0] / (1 - weight[5]))),
                           math.pow((p * E4_C1l[5] + q * E4_C1l[1]), (weight[5] * weight[1] / (1 - weight[5]))),
                           math.pow((p * E4_C1l[5] + q * E4_C1l[2]), (weight[5] * weight[2] / (1 - weight[5]))),
                           math.pow((p * E4_C1l[5] + q * E4_C1l[3]), (weight[5] * weight[3] / (1 - weight[5]))),
                           math.pow((p * E4_C1l[5] + q * E4_C1l[4]), (weight[5] * weight[4] / (1 - weight[5])))))

E4_F_PCoB_l7 = numpy.prod((math.pow((p * E4_C1l[6] + q * E4_C1l[7]), (weight[6] * weight[7] / (1 - weight[6]))),
                           math.pow((p * E4_C1l[6] + q * E4_C1l[0]), (weight[6] * weight[0] / (1 - weight[6]))),
                           math.pow((p * E4_C1l[6] + q * E4_C1l[1]), (weight[6] * weight[1] / (1 - weight[6]))),
                           math.pow((p * E4_C1l[6] + q * E4_C1l[2]), (weight[6] * weight[2] / (1 - weight[6]))),
                           math.pow((p * E4_C1l[6] + q * E4_C1l[3]), (weight[6] * weight[3] / (1 - weight[6]))),
                           math.pow((p * E4_C1l[6] + q * E4_C1l[4]), (weight[6] * weight[4] / (1 - weight[6]))),
                           math.pow((p * E4_C1l[6] + q * E4_C1l[5]), (weight[6] * weight[5] / (1 - weight[6])))))

E4_F_PCoB_l8 = numpy.prod((math.pow((p * E4_C1l[7] + q * E4_C1l[0]), (weight[7] * weight[0] / (1 - weight[7]))),
                           math.pow((p * E4_C1l[7] + q * E4_C1l[1]), (weight[7] * weight[1] / (1 - weight[7]))),
                           math.pow((p * E4_C1l[7] + q * E4_C1l[2]), (weight[7] * weight[2] / (1 - weight[7]))),
                           math.pow((p * E4_C1l[7] + q * E4_C1l[3]), (weight[7] * weight[3] / (1 - weight[7]))),
                           math.pow((p * E4_C1l[7] + q * E4_C1l[4]), (weight[7] * weight[4] / (1 - weight[7]))),
                           math.pow((p * E4_C1l[7] + q * E4_C1l[5]), (weight[7] * weight[5] / (1 - weight[7]))),
                           math.pow((p * E4_C1l[7] + q * E4_C1l[6]), (weight[7] * weight[6] / (1 - weight[7])))))
E4_F_PCoB_l = a * numpy.prod(
    (E4_F_PCoB_l1, E4_F_PCoB_l2, E4_F_PCoB_l3, E4_F_PCoB_l4, E4_F_PCoB_l5, E4_F_PCoB_l6, E4_F_PCoB_l7, E4_F_PCoB_l8))
# </editor-fold>
# <editor-fold desc="E4_F_PCoB_m">
E4_F_PCoB_m1 = numpy.prod((math.pow((p * E4_C1m[0] + q * E4_C1m[1]), (weight[0] * weight[1] / (1 - weight[0]))),
                           math.pow((p * E4_C1m[0] + q * E4_C1m[2]), (weight[0] * weight[2] / (1 - weight[0]))),
                           math.pow((p * E4_C1m[0] + q * E4_C1m[3]), (weight[0] * weight[3] / (1 - weight[0]))),
                           math.pow((p * E4_C1m[0] + q * E4_C1m[4]), (weight[0] * weight[4] / (1 - weight[0]))),
                           math.pow((p * E4_C1m[0] + q * E4_C1m[5]), (weight[0] * weight[5] / (1 - weight[0]))),
                           math.pow((p * E4_C1m[0] + q * E4_C1m[6]), (weight[0] * weight[6] / (1 - weight[0]))),
                           math.pow((p * E4_C1m[0] + q * E4_C1m[7]), (weight[0] * weight[7] / (1 - weight[0])))))

E4_F_PCoB_m2 = numpy.prod((math.pow((p * E4_C1m[1] + q * E4_C1m[2]), (weight[1] * weight[2] / (1 - weight[1]))),
                           math.pow((p * E4_C1m[1] + q * E4_C1m[3]), (weight[1] * weight[3] / (1 - weight[1]))),
                           math.pow((p * E4_C1m[1] + q * E4_C1m[4]), (weight[1] * weight[4] / (1 - weight[1]))),
                           math.pow((p * E4_C1m[1] + q * E4_C1m[5]), (weight[1] * weight[5] / (1 - weight[1]))),
                           math.pow((p * E4_C1m[1] + q * E4_C1m[6]), (weight[1] * weight[6] / (1 - weight[1]))),
                           math.pow((p * E4_C1m[1] + q * E4_C1m[7]), (weight[1] * weight[7] / (1 - weight[1]))),
                           math.pow((p * E4_C1m[1] + q * E4_C1m[0]), (weight[1] * weight[0] / (1 - weight[1])))))

E4_F_PCoB_m3 = numpy.prod((math.pow((p * E4_C1m[2] + q * E4_C1m[3]), (weight[2] * weight[3] / (1 - weight[2]))),
                           math.pow((p * E4_C1m[2] + q * E4_C1m[4]), (weight[2] * weight[4] / (1 - weight[2]))),
                           math.pow((p * E4_C1m[2] + q * E4_C1m[5]), (weight[2] * weight[5] / (1 - weight[2]))),
                           math.pow((p * E4_C1m[2] + q * E4_C1m[6]), (weight[2] * weight[6] / (1 - weight[2]))),
                           math.pow((p * E4_C1m[2] + q * E4_C1m[7]), (weight[2] * weight[7] / (1 - weight[2]))),
                           math.pow((p * E4_C1m[2] + q * E4_C1m[0]), (weight[2] * weight[0] / (1 - weight[2]))),
                           math.pow((p * E4_C1m[2] + q * E4_C1m[1]), (weight[2] * weight[1] / (1 - weight[2])))))

E4_F_PCoB_m4 = numpy.prod((math.pow((p * E4_C1m[3] + q * E4_C1m[4]), (weight[3] * weight[4] / (1 - weight[3]))),
                           math.pow((p * E4_C1m[3] + q * E4_C1m[5]), (weight[3] * weight[5] / (1 - weight[3]))),
                           math.pow((p * E4_C1m[3] + q * E4_C1m[6]), (weight[3] * weight[6] / (1 - weight[3]))),
                           math.pow((p * E4_C1m[3] + q * E4_C1m[7]), (weight[3] * weight[7] / (1 - weight[3]))),
                           math.pow((p * E4_C1m[3] + q * E4_C1m[0]), (weight[3] * weight[0] / (1 - weight[3]))),
                           math.pow((p * E4_C1m[3] + q * E4_C1m[1]), (weight[3] * weight[1] / (1 - weight[3]))),
                           math.pow((p * E4_C1m[3] + q * E4_C1m[2]), (weight[3] * weight[2] / (1 - weight[3])))))

E4_F_PCoB_m5 = numpy.prod((math.pow((p * E4_C1m[4] + q * E4_C1m[5]), (weight[4] * weight[5] / (1 - weight[4]))),
                           math.pow((p * E4_C1m[4] + q * E4_C1m[6]), (weight[4] * weight[6] / (1 - weight[4]))),
                           math.pow((p * E4_C1m[4] + q * E4_C1m[7]), (weight[4] * weight[7] / (1 - weight[4]))),
                           math.pow((p * E4_C1m[4] + q * E4_C1m[0]), (weight[4] * weight[0] / (1 - weight[4]))),
                           math.pow((p * E4_C1m[4] + q * E4_C1m[1]), (weight[4] * weight[1] / (1 - weight[4]))),
                           math.pow((p * E4_C1m[4] + q * E4_C1m[2]), (weight[4] * weight[2] / (1 - weight[4]))),
                           math.pow((p * E4_C1m[4] + q * E4_C1m[3]), (weight[4] * weight[3] / (1 - weight[4])))))

E4_F_PCoB_m6 = numpy.prod((math.pow((p * E4_C1m[5] + q * E4_C1m[6]), (weight[5] * weight[6] / (1 - weight[5]))),
                           math.pow((p * E4_C1m[5] + q * E4_C1m[7]), (weight[5] * weight[7] / (1 - weight[5]))),
                           math.pow((p * E4_C1m[5] + q * E4_C1m[0]), (weight[5] * weight[0] / (1 - weight[5]))),
                           math.pow((p * E4_C1m[5] + q * E4_C1m[1]), (weight[5] * weight[1] / (1 - weight[5]))),
                           math.pow((p * E4_C1m[5] + q * E4_C1m[2]), (weight[5] * weight[2] / (1 - weight[5]))),
                           math.pow((p * E4_C1m[5] + q * E4_C1m[3]), (weight[5] * weight[3] / (1 - weight[5]))),
                           math.pow((p * E4_C1m[5] + q * E4_C1m[4]), (weight[5] * weight[4] / (1 - weight[5])))))

E4_F_PCoB_m7 = numpy.prod((math.pow((p * E4_C1m[6] + q * E4_C1m[7]), (weight[6] * weight[7] / (1 - weight[6]))),
                           math.pow((p * E4_C1m[6] + q * E4_C1m[0]), (weight[6] * weight[0] / (1 - weight[6]))),
                           math.pow((p * E4_C1m[6] + q * E4_C1m[1]), (weight[6] * weight[1] / (1 - weight[6]))),
                           math.pow((p * E4_C1m[6] + q * E4_C1m[2]), (weight[6] * weight[2] / (1 - weight[6]))),
                           math.pow((p * E4_C1m[6] + q * E4_C1m[3]), (weight[6] * weight[3] / (1 - weight[6]))),
                           math.pow((p * E4_C1m[6] + q * E4_C1m[4]), (weight[6] * weight[4] / (1 - weight[6]))),
                           math.pow((p * E4_C1m[6] + q * E4_C1m[5]), (weight[6] * weight[5] / (1 - weight[6])))))

E4_F_PCoB_m8 = numpy.prod((math.pow((p * E4_C1m[7] + q * E4_C1m[0]), (weight[7] * weight[0] / (1 - weight[7]))),
                           math.pow((p * E4_C1m[7] + q * E4_C1m[1]), (weight[7] * weight[1] / (1 - weight[7]))),
                           math.pow((p * E4_C1m[7] + q * E4_C1m[2]), (weight[7] * weight[2] / (1 - weight[7]))),
                           math.pow((p * E4_C1m[7] + q * E4_C1m[3]), (weight[7] * weight[3] / (1 - weight[7]))),
                           math.pow((p * E4_C1m[7] + q * E4_C1m[4]), (weight[7] * weight[4] / (1 - weight[7]))),
                           math.pow((p * E4_C1m[7] + q * E4_C1m[5]), (weight[7] * weight[5] / (1 - weight[7]))),
                           math.pow((p * E4_C1m[7] + q * E4_C1m[6]), (weight[7] * weight[6] / (1 - weight[7])))))
E4_F_PCoB_m = a * numpy.prod(
    (E4_F_PCoB_m1, E4_F_PCoB_m2, E4_F_PCoB_m3, E4_F_PCoB_m4, E4_F_PCoB_m5, E4_F_PCoB_m6, E4_F_PCoB_m7, E4_F_PCoB_m8))
# </editor-fold>
# <editor-fold desc="E4_F_PCoB_u">
E4_F_PCoB_u1 = numpy.prod((math.pow((p * E4_C1u[0] + q * E4_C1u[1]), (weight[0] * weight[1] / (1 - weight[0]))),
                           math.pow((p * E4_C1u[0] + q * E4_C1u[2]), (weight[0] * weight[2] / (1 - weight[0]))),
                           math.pow((p * E4_C1u[0] + q * E4_C1u[3]), (weight[0] * weight[3] / (1 - weight[0]))),
                           math.pow((p * E4_C1u[0] + q * E4_C1u[4]), (weight[0] * weight[4] / (1 - weight[0]))),
                           math.pow((p * E4_C1u[0] + q * E4_C1u[5]), (weight[0] * weight[5] / (1 - weight[0]))),
                           math.pow((p * E4_C1u[0] + q * E4_C1u[6]), (weight[0] * weight[6] / (1 - weight[0]))),
                           math.pow((p * E4_C1u[0] + q * E4_C1u[7]), (weight[0] * weight[7] / (1 - weight[0])))))

E4_F_PCoB_u2 = numpy.prod((math.pow((p * E4_C1u[1] + q * E4_C1u[2]), (weight[1] * weight[2] / (1 - weight[1]))),
                           math.pow((p * E4_C1u[1] + q * E4_C1u[3]), (weight[1] * weight[3] / (1 - weight[1]))),
                           math.pow((p * E4_C1u[1] + q * E4_C1u[4]), (weight[1] * weight[4] / (1 - weight[1]))),
                           math.pow((p * E4_C1u[1] + q * E4_C1u[5]), (weight[1] * weight[5] / (1 - weight[1]))),
                           math.pow((p * E4_C1u[1] + q * E4_C1u[6]), (weight[1] * weight[6] / (1 - weight[1]))),
                           math.pow((p * E4_C1u[1] + q * E4_C1u[7]), (weight[1] * weight[7] / (1 - weight[1]))),
                           math.pow((p * E4_C1u[1] + q * E4_C1u[0]), (weight[1] * weight[0] / (1 - weight[1])))))

E4_F_PCoB_u3 = numpy.prod((math.pow((p * E4_C1u[2] + q * E4_C1u[3]), (weight[2] * weight[3] / (1 - weight[2]))),
                           math.pow((p * E4_C1u[2] + q * E4_C1u[4]), (weight[2] * weight[4] / (1 - weight[2]))),
                           math.pow((p * E4_C1u[2] + q * E4_C1u[5]), (weight[2] * weight[5] / (1 - weight[2]))),
                           math.pow((p * E4_C1u[2] + q * E4_C1u[6]), (weight[2] * weight[6] / (1 - weight[2]))),
                           math.pow((p * E4_C1u[2] + q * E4_C1u[7]), (weight[2] * weight[7] / (1 - weight[2]))),
                           math.pow((p * E4_C1u[2] + q * E4_C1u[0]), (weight[2] * weight[0] / (1 - weight[2]))),
                           math.pow((p * E4_C1u[2] + q * E4_C1u[1]), (weight[2] * weight[1] / (1 - weight[2])))))

E4_F_PCoB_u4 = numpy.prod((math.pow((p * E4_C1u[3] + q * E4_C1u[4]), (weight[3] * weight[4] / (1 - weight[3]))),
                           math.pow((p * E4_C1u[3] + q * E4_C1u[5]), (weight[3] * weight[5] / (1 - weight[3]))),
                           math.pow((p * E4_C1u[3] + q * E4_C1u[6]), (weight[3] * weight[6] / (1 - weight[3]))),
                           math.pow((p * E4_C1u[3] + q * E4_C1u[7]), (weight[3] * weight[7] / (1 - weight[3]))),
                           math.pow((p * E4_C1u[3] + q * E4_C1u[0]), (weight[3] * weight[0] / (1 - weight[3]))),
                           math.pow((p * E4_C1u[3] + q * E4_C1u[1]), (weight[3] * weight[1] / (1 - weight[3]))),
                           math.pow((p * E4_C1u[3] + q * E4_C1u[2]), (weight[3] * weight[2] / (1 - weight[3])))))

E4_F_PCoB_u5 = numpy.prod((math.pow((p * E4_C1u[4] + q * E4_C1u[5]), (weight[4] * weight[5] / (1 - weight[4]))),
                           math.pow((p * E4_C1u[4] + q * E4_C1u[6]), (weight[4] * weight[6] / (1 - weight[4]))),
                           math.pow((p * E4_C1u[4] + q * E4_C1u[7]), (weight[4] * weight[7] / (1 - weight[4]))),
                           math.pow((p * E4_C1u[4] + q * E4_C1u[0]), (weight[4] * weight[0] / (1 - weight[4]))),
                           math.pow((p * E4_C1u[4] + q * E4_C1u[1]), (weight[4] * weight[1] / (1 - weight[4]))),
                           math.pow((p * E4_C1u[4] + q * E4_C1u[2]), (weight[4] * weight[2] / (1 - weight[4]))),
                           math.pow((p * E4_C1u[4] + q * E4_C1u[3]), (weight[4] * weight[3] / (1 - weight[4])))))

E4_F_PCoB_u6 = numpy.prod((math.pow((p * E4_C1u[5] + q * E4_C1u[6]), (weight[5] * weight[6] / (1 - weight[5]))),
                           math.pow((p * E4_C1u[5] + q * E4_C1u[7]), (weight[5] * weight[7] / (1 - weight[5]))),
                           math.pow((p * E4_C1u[5] + q * E4_C1u[0]), (weight[5] * weight[0] / (1 - weight[5]))),
                           math.pow((p * E4_C1u[5] + q * E4_C1u[1]), (weight[5] * weight[1] / (1 - weight[5]))),
                           math.pow((p * E4_C1u[5] + q * E4_C1u[2]), (weight[5] * weight[2] / (1 - weight[5]))),
                           math.pow((p * E4_C1u[5] + q * E4_C1u[3]), (weight[5] * weight[3] / (1 - weight[5]))),
                           math.pow((p * E4_C1u[5] + q * E4_C1u[4]), (weight[5] * weight[4] / (1 - weight[5])))))

E4_F_PCoB_u7 = numpy.prod((math.pow((p * E4_C1u[6] + q * E4_C1u[7]), (weight[6] * weight[7] / (1 - weight[6]))),
                           math.pow((p * E4_C1u[6] + q * E4_C1u[0]), (weight[6] * weight[0] / (1 - weight[6]))),
                           math.pow((p * E4_C1u[6] + q * E4_C1u[1]), (weight[6] * weight[1] / (1 - weight[6]))),
                           math.pow((p * E4_C1u[6] + q * E4_C1u[2]), (weight[6] * weight[2] / (1 - weight[6]))),
                           math.pow((p * E4_C1u[6] + q * E4_C1u[3]), (weight[6] * weight[3] / (1 - weight[6]))),
                           math.pow((p * E4_C1u[6] + q * E4_C1u[4]), (weight[6] * weight[4] / (1 - weight[6]))),
                           math.pow((p * E4_C1u[6] + q * E4_C1u[5]), (weight[6] * weight[5] / (1 - weight[6])))))

E4_F_PCoB_u8 = numpy.prod((math.pow((p * E4_C1u[7] + q * E4_C1u[0]), (weight[7] * weight[0] / (1 - weight[7]))),
                           math.pow((p * E4_C1u[7] + q * E4_C1u[1]), (weight[7] * weight[1] / (1 - weight[7]))),
                           math.pow((p * E4_C1u[7] + q * E4_C1u[2]), (weight[7] * weight[2] / (1 - weight[7]))),
                           math.pow((p * E4_C1u[7] + q * E4_C1u[3]), (weight[7] * weight[3] / (1 - weight[7]))),
                           math.pow((p * E4_C1u[7] + q * E4_C1u[4]), (weight[7] * weight[4] / (1 - weight[7]))),
                           math.pow((p * E4_C1u[7] + q * E4_C1u[5]), (weight[7] * weight[5] / (1 - weight[7]))),
                           math.pow((p * E4_C1u[7] + q * E4_C1u[6]), (weight[7] * weight[6] / (1 - weight[7])))))
E4_F_PCoB_u = a * numpy.prod(
    (E4_F_PCoB_u1, E4_F_PCoB_u2, E4_F_PCoB_u3, E4_F_PCoB_u4, E4_F_PCoB_u5, E4_F_PCoB_u6, E4_F_PCoB_u7, E4_F_PCoB_u8))
# </editor-fold>
# print(E4_F_PCoB_l)
# print(E4_F_PCoB_m)
# print(E4_F_PCoB_u)
E4_PCoB = (E4_F_PCoB_l + 4 * E4_F_PCoB_m + E4_F_PCoB_u) / 6

# E5
# <editor-fold desc="E5_F_SCoB_l">
E5_F_SCoB_l1 = sum(
    ((((weight[0] * weight[1] / (1 - weight[0])) * math.pow(E5_C1l[0], p) * math.pow(E5_C1l[1], q)),
      ((weight[0] * weight[2] / (1 - weight[0])) * math.pow(E5_C1l[0], p) * math.pow(E5_C1l[2], q)),
      ((weight[0] * weight[3] / (1 - weight[0])) * math.pow(E5_C1l[0], p) * math.pow(E5_C1l[3], q)),
      ((weight[0] * weight[4] / (1 - weight[0])) * math.pow(E5_C1l[0], p) * math.pow(E5_C1l[4], q)),
      ((weight[0] * weight[5] / (1 - weight[0])) * math.pow(E5_C1l[0], p) * math.pow(E5_C1l[5], q)),
      ((weight[0] * weight[6] / (1 - weight[0])) * math.pow(E5_C1l[0], p) * math.pow(E5_C1l[6], q)),
      ((weight[0] * weight[7] / (1 - weight[0])) * math.pow(E5_C1l[0], p) * math.pow(E5_C1l[2], q)))))

E5_F_SCoB_l2 = sum(
    ((((weight[1] * weight[2] / (1 - weight[1])) * math.pow(E5_C1l[1], p) * math.pow(E5_C1l[2], q)),
      ((weight[1] * weight[3] / (1 - weight[1])) * math.pow(E5_C1l[1], p) * math.pow(E5_C1l[3], q)),
      ((weight[1] * weight[4] / (1 - weight[1])) * math.pow(E5_C1l[1], p) * math.pow(E5_C1l[4], q)),
      ((weight[1] * weight[5] / (1 - weight[1])) * math.pow(E5_C1l[1], p) * math.pow(E5_C1l[5], q)),
      ((weight[1] * weight[6] / (1 - weight[1])) * math.pow(E5_C1l[1], p) * math.pow(E5_C1l[6], q)),
      ((weight[1] * weight[7] / (1 - weight[1])) * math.pow(E5_C1l[1], p) * math.pow(E5_C1l[7], q)),
      ((weight[1] * weight[0] / (1 - weight[1])) * math.pow(E5_C1l[1], p) * math.pow(E5_C1l[0], q)))))

E5_F_SCoB_l3 = sum(
    ((((weight[2] * weight[3] / (1 - weight[2])) * math.pow(E5_C1l[2], p) * math.pow(E5_C1l[3], q)),
      ((weight[2] * weight[4] / (1 - weight[2])) * math.pow(E5_C1l[2], p) * math.pow(E5_C1l[4], q)),
      ((weight[2] * weight[5] / (1 - weight[2])) * math.pow(E5_C1l[2], p) * math.pow(E5_C1l[5], q)),
      ((weight[2] * weight[6] / (1 - weight[2])) * math.pow(E5_C1l[2], p) * math.pow(E5_C1l[6], q)),
      ((weight[2] * weight[7] / (1 - weight[2])) * math.pow(E5_C1l[2], p) * math.pow(E5_C1l[7], q)),
      ((weight[2] * weight[0] / (1 - weight[2])) * math.pow(E5_C1l[2], p) * math.pow(E5_C1l[0], q)),
      ((weight[2] * weight[1] / (1 - weight[2])) * math.pow(E5_C1l[2], p) * math.pow(E5_C1l[1], q)))))

E5_F_SCoB_l4 = sum(
    ((((weight[3] * weight[4] / (1 - weight[3])) * math.pow(E5_C1l[3], p) * math.pow(E5_C1l[4], q)),
      ((weight[3] * weight[5] / (1 - weight[3])) * math.pow(E5_C1l[3], p) * math.pow(E5_C1l[5], q)),
      ((weight[3] * weight[6] / (1 - weight[3])) * math.pow(E5_C1l[3], p) * math.pow(E5_C1l[6], q)),
      ((weight[3] * weight[7] / (1 - weight[3])) * math.pow(E5_C1l[3], p) * math.pow(E5_C1l[7], q)),
      ((weight[3] * weight[0] / (1 - weight[3])) * math.pow(E5_C1l[3], p) * math.pow(E5_C1l[0], q)),
      ((weight[3] * weight[1] / (1 - weight[3])) * math.pow(E5_C1l[3], p) * math.pow(E5_C1l[1], q)),
      ((weight[3] * weight[2] / (1 - weight[3])) * math.pow(E5_C1l[3], p) * math.pow(E5_C1l[2], q)))))

E5_F_SCoB_l5 = sum(
    ((((weight[4] * weight[5] / (1 - weight[4])) * math.pow(E5_C1l[4], p) * math.pow(E5_C1l[5], q)),
      ((weight[4] * weight[6] / (1 - weight[4])) * math.pow(E5_C1l[4], p) * math.pow(E5_C1l[6], q)),
      ((weight[4] * weight[7] / (1 - weight[4])) * math.pow(E5_C1l[4], p) * math.pow(E5_C1l[7], q)),
      ((weight[4] * weight[0] / (1 - weight[4])) * math.pow(E5_C1l[4], p) * math.pow(E5_C1l[0], q)),
      ((weight[4] * weight[1] / (1 - weight[4])) * math.pow(E5_C1l[4], p) * math.pow(E5_C1l[1], q)),
      ((weight[4] * weight[2] / (1 - weight[4])) * math.pow(E5_C1l[4], p) * math.pow(E5_C1l[2], q)),
      ((weight[4] * weight[3] / (1 - weight[4])) * math.pow(E5_C1l[4], p) * math.pow(E5_C1l[3], q)))))

E5_F_SCoB_l6 = sum(
    ((((weight[5] * weight[6] / (1 - weight[5])) * math.pow(E5_C1l[5], p) * math.pow(E5_C1l[6], q)),
      ((weight[5] * weight[7] / (1 - weight[5])) * math.pow(E5_C1l[5], p) * math.pow(E5_C1l[7], q)),
      ((weight[5] * weight[0] / (1 - weight[5])) * math.pow(E5_C1l[5], p) * math.pow(E5_C1l[0], q)),
      ((weight[5] * weight[1] / (1 - weight[5])) * math.pow(E5_C1l[5], p) * math.pow(E5_C1l[1], q)),
      ((weight[5] * weight[2] / (1 - weight[5])) * math.pow(E5_C1l[5], p) * math.pow(E5_C1l[2], q)),
      ((weight[5] * weight[3] / (1 - weight[5])) * math.pow(E5_C1l[5], p) * math.pow(E5_C1l[3], q)),
      ((weight[5] * weight[4] / (1 - weight[5])) * math.pow(E5_C1l[5], p) * math.pow(E5_C1l[4], q)))))

E5_F_SCoB_l7 = sum(
    ((((weight[6] * weight[7] / (1 - weight[6])) * math.pow(E5_C1l[6], p) * math.pow(E5_C1l[7], q)),
      ((weight[6] * weight[0] / (1 - weight[6])) * math.pow(E5_C1l[6], p) * math.pow(E5_C1l[0], q)),
      ((weight[6] * weight[1] / (1 - weight[6])) * math.pow(E5_C1l[6], p) * math.pow(E5_C1l[1], q)),
      ((weight[6] * weight[2] / (1 - weight[6])) * math.pow(E5_C1l[6], p) * math.pow(E5_C1l[2], q)),
      ((weight[6] * weight[3] / (1 - weight[6])) * math.pow(E5_C1l[6], p) * math.pow(E5_C1l[3], q)),
      ((weight[6] * weight[4] / (1 - weight[6])) * math.pow(E5_C1l[6], p) * math.pow(E5_C1l[4], q)),
      ((weight[6] * weight[5] / (1 - weight[6])) * math.pow(E5_C1l[6], p) * math.pow(E5_C1l[5], q)))))

E5_F_SCoB_l8 = sum(
    ((((weight[7] * weight[0] / (1 - weight[7])) * math.pow(E5_C1l[7], p) * math.pow(E5_C1l[0], q)),
      ((weight[7] * weight[1] / (1 - weight[7])) * math.pow(E5_C1l[7], p) * math.pow(E5_C1l[1], q)),
      ((weight[7] * weight[2] / (1 - weight[7])) * math.pow(E5_C1l[7], p) * math.pow(E5_C1l[2], q)),
      ((weight[7] * weight[3] / (1 - weight[7])) * math.pow(E5_C1l[7], p) * math.pow(E5_C1l[3], q)),
      ((weight[7] * weight[4] / (1 - weight[7])) * math.pow(E5_C1l[7], p) * math.pow(E5_C1l[4], q)),
      ((weight[7] * weight[5] / (1 - weight[7])) * math.pow(E5_C1l[7], p) * math.pow(E5_C1l[5], q)),
      ((weight[7] * weight[6] / (1 - weight[7])) * math.pow(E5_C1l[7], p) * math.pow(E5_C1l[6], q)))))
E5_F_SCoB_l = pow(sum(
    (E5_F_SCoB_l1, E5_F_SCoB_l2, E5_F_SCoB_l3, E5_F_SCoB_l4, E5_F_SCoB_l5, E5_F_SCoB_l6, E5_F_SCoB_l7, E5_F_SCoB_l8)),
    a)
# </editor-fold>
# <editor-fold desc="E5_F_SCoB_m">
E5_F_SCoB_m1 = sum(
    ((((weight[0] * weight[1] / (1 - weight[0])) * math.pow(E5_C1m[0], p) * math.pow(E5_C1m[1], q)),
      ((weight[0] * weight[2] / (1 - weight[0])) * math.pow(E5_C1m[0], p) * math.pow(E5_C1m[2], q)),
      ((weight[0] * weight[3] / (1 - weight[0])) * math.pow(E5_C1m[0], p) * math.pow(E5_C1m[3], q)),
      ((weight[0] * weight[4] / (1 - weight[0])) * math.pow(E5_C1m[0], p) * math.pow(E5_C1m[4], q)),
      ((weight[0] * weight[5] / (1 - weight[0])) * math.pow(E5_C1m[0], p) * math.pow(E5_C1m[5], q)),
      ((weight[0] * weight[6] / (1 - weight[0])) * math.pow(E5_C1m[0], p) * math.pow(E5_C1m[6], q)),
      ((weight[0] * weight[7] / (1 - weight[0])) * math.pow(E5_C1m[0], p) * math.pow(E5_C1m[2], q)))))

E5_F_SCoB_m2 = sum(
    ((((weight[1] * weight[2] / (1 - weight[1])) * math.pow(E5_C1m[1], p) * math.pow(E5_C1m[2], q)),
      ((weight[1] * weight[3] / (1 - weight[1])) * math.pow(E5_C1m[1], p) * math.pow(E5_C1m[3], q)),
      ((weight[1] * weight[4] / (1 - weight[1])) * math.pow(E5_C1m[1], p) * math.pow(E5_C1m[4], q)),
      ((weight[1] * weight[5] / (1 - weight[1])) * math.pow(E5_C1m[1], p) * math.pow(E5_C1m[5], q)),
      ((weight[1] * weight[6] / (1 - weight[1])) * math.pow(E5_C1m[1], p) * math.pow(E5_C1m[6], q)),
      ((weight[1] * weight[7] / (1 - weight[1])) * math.pow(E5_C1m[1], p) * math.pow(E5_C1m[7], q)),
      ((weight[1] * weight[0] / (1 - weight[1])) * math.pow(E5_C1m[1], p) * math.pow(E5_C1m[0], q)))))

E5_F_SCoB_m3 = sum(
    ((((weight[2] * weight[3] / (1 - weight[2])) * math.pow(E5_C1m[2], p) * math.pow(E5_C1m[3], q)),
      ((weight[2] * weight[4] / (1 - weight[2])) * math.pow(E5_C1m[2], p) * math.pow(E5_C1m[4], q)),
      ((weight[2] * weight[5] / (1 - weight[2])) * math.pow(E5_C1m[2], p) * math.pow(E5_C1m[5], q)),
      ((weight[2] * weight[6] / (1 - weight[2])) * math.pow(E5_C1m[2], p) * math.pow(E5_C1m[6], q)),
      ((weight[2] * weight[7] / (1 - weight[2])) * math.pow(E5_C1m[2], p) * math.pow(E5_C1m[7], q)),
      ((weight[2] * weight[0] / (1 - weight[2])) * math.pow(E5_C1m[2], p) * math.pow(E5_C1m[0], q)),
      ((weight[2] * weight[1] / (1 - weight[2])) * math.pow(E5_C1m[2], p) * math.pow(E5_C1m[1], q)))))

E5_F_SCoB_m4 = sum(
    ((((weight[3] * weight[4] / (1 - weight[3])) * math.pow(E5_C1m[3], p) * math.pow(E5_C1m[4], q)),
      ((weight[3] * weight[5] / (1 - weight[3])) * math.pow(E5_C1m[3], p) * math.pow(E5_C1m[5], q)),
      ((weight[3] * weight[6] / (1 - weight[3])) * math.pow(E5_C1m[3], p) * math.pow(E5_C1m[6], q)),
      ((weight[3] * weight[7] / (1 - weight[3])) * math.pow(E5_C1m[3], p) * math.pow(E5_C1m[7], q)),
      ((weight[3] * weight[0] / (1 - weight[3])) * math.pow(E5_C1m[3], p) * math.pow(E5_C1m[0], q)),
      ((weight[3] * weight[1] / (1 - weight[3])) * math.pow(E5_C1m[3], p) * math.pow(E5_C1m[1], q)),
      ((weight[3] * weight[2] / (1 - weight[3])) * math.pow(E5_C1m[3], p) * math.pow(E5_C1m[2], q)))))

E5_F_SCoB_m5 = sum(
    ((((weight[4] * weight[5] / (1 - weight[4])) * math.pow(E5_C1m[4], p) * math.pow(E5_C1m[5], q)),
      ((weight[4] * weight[6] / (1 - weight[4])) * math.pow(E5_C1m[4], p) * math.pow(E5_C1m[6], q)),
      ((weight[4] * weight[7] / (1 - weight[4])) * math.pow(E5_C1m[4], p) * math.pow(E5_C1m[7], q)),
      ((weight[4] * weight[0] / (1 - weight[4])) * math.pow(E5_C1m[4], p) * math.pow(E5_C1m[0], q)),
      ((weight[4] * weight[1] / (1 - weight[4])) * math.pow(E5_C1m[4], p) * math.pow(E5_C1m[1], q)),
      ((weight[4] * weight[2] / (1 - weight[4])) * math.pow(E5_C1m[4], p) * math.pow(E5_C1m[2], q)),
      ((weight[4] * weight[3] / (1 - weight[4])) * math.pow(E5_C1m[4], p) * math.pow(E5_C1m[3], q)))))

E5_F_SCoB_m6 = sum(
    ((((weight[5] * weight[6] / (1 - weight[5])) * math.pow(E5_C1m[5], p) * math.pow(E5_C1m[6], q)),
      ((weight[5] * weight[7] / (1 - weight[5])) * math.pow(E5_C1m[5], p) * math.pow(E5_C1m[7], q)),
      ((weight[5] * weight[0] / (1 - weight[5])) * math.pow(E5_C1m[5], p) * math.pow(E5_C1m[0], q)),
      ((weight[5] * weight[1] / (1 - weight[5])) * math.pow(E5_C1m[5], p) * math.pow(E5_C1m[1], q)),
      ((weight[5] * weight[2] / (1 - weight[5])) * math.pow(E5_C1m[5], p) * math.pow(E5_C1m[2], q)),
      ((weight[5] * weight[3] / (1 - weight[5])) * math.pow(E5_C1m[5], p) * math.pow(E5_C1m[3], q)),
      ((weight[5] * weight[4] / (1 - weight[5])) * math.pow(E5_C1m[5], p) * math.pow(E5_C1m[4], q)))))

E5_F_SCoB_m7 = sum(
    ((((weight[6] * weight[7] / (1 - weight[6])) * math.pow(E5_C1m[6], p) * math.pow(E5_C1m[7], q)),
      ((weight[6] * weight[0] / (1 - weight[6])) * math.pow(E5_C1m[6], p) * math.pow(E5_C1m[0], q)),
      ((weight[6] * weight[1] / (1 - weight[6])) * math.pow(E5_C1m[6], p) * math.pow(E5_C1m[1], q)),
      ((weight[6] * weight[2] / (1 - weight[6])) * math.pow(E5_C1m[6], p) * math.pow(E5_C1m[2], q)),
      ((weight[6] * weight[3] / (1 - weight[6])) * math.pow(E5_C1m[6], p) * math.pow(E5_C1m[3], q)),
      ((weight[6] * weight[4] / (1 - weight[6])) * math.pow(E5_C1m[6], p) * math.pow(E5_C1m[4], q)),
      ((weight[6] * weight[5] / (1 - weight[6])) * math.pow(E5_C1m[6], p) * math.pow(E5_C1m[5], q)))))

E5_F_SCoB_m8 = sum(
    ((((weight[7] * weight[0] / (1 - weight[7])) * math.pow(E5_C1m[7], p) * math.pow(E5_C1m[0], q)),
      ((weight[7] * weight[1] / (1 - weight[7])) * math.pow(E5_C1m[7], p) * math.pow(E5_C1m[1], q)),
      ((weight[7] * weight[2] / (1 - weight[7])) * math.pow(E5_C1m[7], p) * math.pow(E5_C1m[2], q)),
      ((weight[7] * weight[3] / (1 - weight[7])) * math.pow(E5_C1m[7], p) * math.pow(E5_C1m[3], q)),
      ((weight[7] * weight[4] / (1 - weight[7])) * math.pow(E5_C1m[7], p) * math.pow(E5_C1m[4], q)),
      ((weight[7] * weight[5] / (1 - weight[7])) * math.pow(E5_C1m[7], p) * math.pow(E5_C1m[5], q)),
      ((weight[7] * weight[6] / (1 - weight[7])) * math.pow(E5_C1m[7], p) * math.pow(E5_C1m[6], q)))))
E5_F_SCoB_m = pow(sum(
    (E5_F_SCoB_m1, E5_F_SCoB_m2, E5_F_SCoB_m3, E5_F_SCoB_m4, E5_F_SCoB_m5, E5_F_SCoB_m6, E5_F_SCoB_m7, E5_F_SCoB_m8)),
    a)
# </editor-fold>
# <editor-fold desc="E5_F_SCoB_u">
E5_F_SCoB_u1 = sum(
    ((((weight[0] * weight[1] / (1 - weight[0])) * math.pow(E5_C1u[0], p) * math.pow(E5_C1u[1], q)),
      ((weight[0] * weight[2] / (1 - weight[0])) * math.pow(E5_C1u[0], p) * math.pow(E5_C1u[2], q)),
      ((weight[0] * weight[3] / (1 - weight[0])) * math.pow(E5_C1u[0], p) * math.pow(E5_C1u[3], q)),
      ((weight[0] * weight[4] / (1 - weight[0])) * math.pow(E5_C1u[0], p) * math.pow(E5_C1u[4], q)),
      ((weight[0] * weight[5] / (1 - weight[0])) * math.pow(E5_C1u[0], p) * math.pow(E5_C1u[5], q)),
      ((weight[0] * weight[6] / (1 - weight[0])) * math.pow(E5_C1u[0], p) * math.pow(E5_C1u[6], q)),
      ((weight[0] * weight[7] / (1 - weight[0])) * math.pow(E5_C1u[0], p) * math.pow(E5_C1u[2], q)))))

E5_F_SCoB_u2 = sum(
    ((((weight[1] * weight[2] / (1 - weight[1])) * math.pow(E5_C1u[1], p) * math.pow(E5_C1u[2], q)),
      ((weight[1] * weight[3] / (1 - weight[1])) * math.pow(E5_C1u[1], p) * math.pow(E5_C1u[3], q)),
      ((weight[1] * weight[4] / (1 - weight[1])) * math.pow(E5_C1u[1], p) * math.pow(E5_C1u[4], q)),
      ((weight[1] * weight[5] / (1 - weight[1])) * math.pow(E5_C1u[1], p) * math.pow(E5_C1u[5], q)),
      ((weight[1] * weight[6] / (1 - weight[1])) * math.pow(E5_C1u[1], p) * math.pow(E5_C1u[6], q)),
      ((weight[1] * weight[7] / (1 - weight[1])) * math.pow(E5_C1u[1], p) * math.pow(E5_C1u[7], q)),
      ((weight[1] * weight[0] / (1 - weight[1])) * math.pow(E5_C1u[1], p) * math.pow(E5_C1u[0], q)))))

E5_F_SCoB_u3 = sum(
    ((((weight[2] * weight[3] / (1 - weight[2])) * math.pow(E5_C1u[2], p) * math.pow(E5_C1u[3], q)),
      ((weight[2] * weight[4] / (1 - weight[2])) * math.pow(E5_C1u[2], p) * math.pow(E5_C1u[4], q)),
      ((weight[2] * weight[5] / (1 - weight[2])) * math.pow(E5_C1u[2], p) * math.pow(E5_C1u[5], q)),
      ((weight[2] * weight[6] / (1 - weight[2])) * math.pow(E5_C1u[2], p) * math.pow(E5_C1u[6], q)),
      ((weight[2] * weight[7] / (1 - weight[2])) * math.pow(E5_C1u[2], p) * math.pow(E5_C1u[7], q)),
      ((weight[2] * weight[0] / (1 - weight[2])) * math.pow(E5_C1u[2], p) * math.pow(E5_C1u[0], q)),
      ((weight[2] * weight[1] / (1 - weight[2])) * math.pow(E5_C1u[2], p) * math.pow(E5_C1u[1], q)))))

E5_F_SCoB_u4 = sum(
    ((((weight[3] * weight[4] / (1 - weight[3])) * math.pow(E5_C1u[3], p) * math.pow(E5_C1u[4], q)),
      ((weight[3] * weight[5] / (1 - weight[3])) * math.pow(E5_C1u[3], p) * math.pow(E5_C1u[5], q)),
      ((weight[3] * weight[6] / (1 - weight[3])) * math.pow(E5_C1u[3], p) * math.pow(E5_C1u[6], q)),
      ((weight[3] * weight[7] / (1 - weight[3])) * math.pow(E5_C1u[3], p) * math.pow(E5_C1u[7], q)),
      ((weight[3] * weight[0] / (1 - weight[3])) * math.pow(E5_C1u[3], p) * math.pow(E5_C1u[0], q)),
      ((weight[3] * weight[1] / (1 - weight[3])) * math.pow(E5_C1u[3], p) * math.pow(E5_C1u[1], q)),
      ((weight[3] * weight[2] / (1 - weight[3])) * math.pow(E5_C1u[3], p) * math.pow(E5_C1u[2], q)))))

E5_F_SCoB_u5 = sum(
    ((((weight[4] * weight[5] / (1 - weight[4])) * math.pow(E5_C1u[4], p) * math.pow(E5_C1u[5], q)),
      ((weight[4] * weight[6] / (1 - weight[4])) * math.pow(E5_C1u[4], p) * math.pow(E5_C1u[6], q)),
      ((weight[4] * weight[7] / (1 - weight[4])) * math.pow(E5_C1u[4], p) * math.pow(E5_C1u[7], q)),
      ((weight[4] * weight[0] / (1 - weight[4])) * math.pow(E5_C1u[4], p) * math.pow(E5_C1u[0], q)),
      ((weight[4] * weight[1] / (1 - weight[4])) * math.pow(E5_C1u[4], p) * math.pow(E5_C1u[1], q)),
      ((weight[4] * weight[2] / (1 - weight[4])) * math.pow(E5_C1u[4], p) * math.pow(E5_C1u[2], q)),
      ((weight[4] * weight[3] / (1 - weight[4])) * math.pow(E5_C1u[4], p) * math.pow(E5_C1u[3], q)))))

E5_F_SCoB_u6 = sum(
    ((((weight[5] * weight[6] / (1 - weight[5])) * math.pow(E5_C1u[5], p) * math.pow(E5_C1u[6], q)),
      ((weight[5] * weight[7] / (1 - weight[5])) * math.pow(E5_C1u[5], p) * math.pow(E5_C1u[7], q)),
      ((weight[5] * weight[0] / (1 - weight[5])) * math.pow(E5_C1u[5], p) * math.pow(E5_C1u[0], q)),
      ((weight[5] * weight[1] / (1 - weight[5])) * math.pow(E5_C1u[5], p) * math.pow(E5_C1u[1], q)),
      ((weight[5] * weight[2] / (1 - weight[5])) * math.pow(E5_C1u[5], p) * math.pow(E5_C1u[2], q)),
      ((weight[5] * weight[3] / (1 - weight[5])) * math.pow(E5_C1u[5], p) * math.pow(E5_C1u[3], q)),
      ((weight[5] * weight[4] / (1 - weight[5])) * math.pow(E5_C1u[5], p) * math.pow(E5_C1u[4], q)))))

E5_F_SCoB_u7 = sum(
    ((((weight[6] * weight[7] / (1 - weight[6])) * math.pow(E5_C1u[6], p) * math.pow(E5_C1u[7], q)),
      ((weight[6] * weight[0] / (1 - weight[6])) * math.pow(E5_C1u[6], p) * math.pow(E5_C1u[0], q)),
      ((weight[6] * weight[1] / (1 - weight[6])) * math.pow(E5_C1u[6], p) * math.pow(E5_C1u[1], q)),
      ((weight[6] * weight[2] / (1 - weight[6])) * math.pow(E5_C1u[6], p) * math.pow(E5_C1u[2], q)),
      ((weight[6] * weight[3] / (1 - weight[6])) * math.pow(E5_C1u[6], p) * math.pow(E5_C1u[3], q)),
      ((weight[6] * weight[4] / (1 - weight[6])) * math.pow(E5_C1u[6], p) * math.pow(E5_C1u[4], q)),
      ((weight[6] * weight[5] / (1 - weight[6])) * math.pow(E5_C1u[6], p) * math.pow(E5_C1u[5], q)))))

E5_F_SCoB_u8 = sum(
    ((((weight[7] * weight[0] / (1 - weight[7])) * math.pow(E5_C1u[7], p) * math.pow(E5_C1u[0], q)),
      ((weight[7] * weight[1] / (1 - weight[7])) * math.pow(E5_C1u[7], p) * math.pow(E5_C1u[1], q)),
      ((weight[7] * weight[2] / (1 - weight[7])) * math.pow(E5_C1u[7], p) * math.pow(E5_C1u[2], q)),
      ((weight[7] * weight[3] / (1 - weight[7])) * math.pow(E5_C1u[7], p) * math.pow(E5_C1u[3], q)),
      ((weight[7] * weight[4] / (1 - weight[7])) * math.pow(E5_C1u[7], p) * math.pow(E5_C1u[4], q)),
      ((weight[7] * weight[5] / (1 - weight[7])) * math.pow(E5_C1u[7], p) * math.pow(E5_C1u[5], q)),
      ((weight[7] * weight[6] / (1 - weight[7])) * math.pow(E5_C1u[7], p) * math.pow(E5_C1u[6], q)))))
E5_F_SCoB_u = pow(sum(
    (E5_F_SCoB_u1, E5_F_SCoB_u2, E5_F_SCoB_u3, E5_F_SCoB_u4, E5_F_SCoB_u5, E5_F_SCoB_u6, E5_F_SCoB_u7, E5_F_SCoB_u8)),
    a)
# </editor-fold>
# print(E5_F_SCoB_l)
# print(E5_F_SCoB_m)
# print(E5_F_SCoB_u)
E5_SCoB = (E5_F_SCoB_l + 4 * E5_F_SCoB_m + E5_F_SCoB_u) / 6

# <editor-fold desc="E5_F_PCoB_l">
E5_F_PCoB_l1 = numpy.prod((math.pow((p * E5_C1l[0] + q * E5_C1l[1]), (weight[0] * weight[1] / (1 - weight[0]))),
                           math.pow((p * E5_C1l[0] + q * E5_C1l[2]), (weight[0] * weight[2] / (1 - weight[0]))),
                           math.pow((p * E5_C1l[0] + q * E5_C1l[3]), (weight[0] * weight[3] / (1 - weight[0]))),
                           math.pow((p * E5_C1l[0] + q * E5_C1l[4]), (weight[0] * weight[4] / (1 - weight[0]))),
                           math.pow((p * E5_C1l[0] + q * E5_C1l[5]), (weight[0] * weight[5] / (1 - weight[0]))),
                           math.pow((p * E5_C1l[0] + q * E5_C1l[6]), (weight[0] * weight[6] / (1 - weight[0]))),
                           math.pow((p * E5_C1l[0] + q * E5_C1l[7]), (weight[0] * weight[7] / (1 - weight[0])))))

E5_F_PCoB_l2 = numpy.prod((math.pow((p * E5_C1l[1] + q * E5_C1l[2]), (weight[1] * weight[2] / (1 - weight[1]))),
                           math.pow((p * E5_C1l[1] + q * E5_C1l[3]), (weight[1] * weight[3] / (1 - weight[1]))),
                           math.pow((p * E5_C1l[1] + q * E5_C1l[4]), (weight[1] * weight[4] / (1 - weight[1]))),
                           math.pow((p * E5_C1l[1] + q * E5_C1l[5]), (weight[1] * weight[5] / (1 - weight[1]))),
                           math.pow((p * E5_C1l[1] + q * E5_C1l[6]), (weight[1] * weight[6] / (1 - weight[1]))),
                           math.pow((p * E5_C1l[1] + q * E5_C1l[7]), (weight[1] * weight[7] / (1 - weight[1]))),
                           math.pow((p * E5_C1l[1] + q * E5_C1l[0]), (weight[1] * weight[0] / (1 - weight[1])))))

E5_F_PCoB_l3 = numpy.prod((math.pow((p * E5_C1l[2] + q * E5_C1l[3]), (weight[2] * weight[3] / (1 - weight[2]))),
                           math.pow((p * E5_C1l[2] + q * E5_C1l[4]), (weight[2] * weight[4] / (1 - weight[2]))),
                           math.pow((p * E5_C1l[2] + q * E5_C1l[5]), (weight[2] * weight[5] / (1 - weight[2]))),
                           math.pow((p * E5_C1l[2] + q * E5_C1l[6]), (weight[2] * weight[6] / (1 - weight[2]))),
                           math.pow((p * E5_C1l[2] + q * E5_C1l[7]), (weight[2] * weight[7] / (1 - weight[2]))),
                           math.pow((p * E5_C1l[2] + q * E5_C1l[0]), (weight[2] * weight[0] / (1 - weight[2]))),
                           math.pow((p * E5_C1l[2] + q * E5_C1l[1]), (weight[2] * weight[1] / (1 - weight[2])))))

E5_F_PCoB_l4 = numpy.prod((math.pow((p * E5_C1l[3] + q * E5_C1l[4]), (weight[3] * weight[4] / (1 - weight[3]))),
                           math.pow((p * E5_C1l[3] + q * E5_C1l[5]), (weight[3] * weight[5] / (1 - weight[3]))),
                           math.pow((p * E5_C1l[3] + q * E5_C1l[6]), (weight[3] * weight[6] / (1 - weight[3]))),
                           math.pow((p * E5_C1l[3] + q * E5_C1l[7]), (weight[3] * weight[7] / (1 - weight[3]))),
                           math.pow((p * E5_C1l[3] + q * E5_C1l[0]), (weight[3] * weight[0] / (1 - weight[3]))),
                           math.pow((p * E5_C1l[3] + q * E5_C1l[1]), (weight[3] * weight[1] / (1 - weight[3]))),
                           math.pow((p * E5_C1l[3] + q * E5_C1l[2]), (weight[3] * weight[2] / (1 - weight[3])))))

E5_F_PCoB_l5 = numpy.prod((math.pow((p * E5_C1l[4] + q * E5_C1l[5]), (weight[4] * weight[5] / (1 - weight[4]))),
                           math.pow((p * E5_C1l[4] + q * E5_C1l[6]), (weight[4] * weight[6] / (1 - weight[4]))),
                           math.pow((p * E5_C1l[4] + q * E5_C1l[7]), (weight[4] * weight[7] / (1 - weight[4]))),
                           math.pow((p * E5_C1l[4] + q * E5_C1l[0]), (weight[4] * weight[0] / (1 - weight[4]))),
                           math.pow((p * E5_C1l[4] + q * E5_C1l[1]), (weight[4] * weight[1] / (1 - weight[4]))),
                           math.pow((p * E5_C1l[4] + q * E5_C1l[2]), (weight[4] * weight[2] / (1 - weight[4]))),
                           math.pow((p * E5_C1l[4] + q * E5_C1l[3]), (weight[4] * weight[3] / (1 - weight[4])))))

E5_F_PCoB_l6 = numpy.prod((math.pow((p * E5_C1l[5] + q * E5_C1l[6]), (weight[5] * weight[6] / (1 - weight[5]))),
                           math.pow((p * E5_C1l[5] + q * E5_C1l[7]), (weight[5] * weight[7] / (1 - weight[5]))),
                           math.pow((p * E5_C1l[5] + q * E5_C1l[0]), (weight[5] * weight[0] / (1 - weight[5]))),
                           math.pow((p * E5_C1l[5] + q * E5_C1l[1]), (weight[5] * weight[1] / (1 - weight[5]))),
                           math.pow((p * E5_C1l[5] + q * E5_C1l[2]), (weight[5] * weight[2] / (1 - weight[5]))),
                           math.pow((p * E5_C1l[5] + q * E5_C1l[3]), (weight[5] * weight[3] / (1 - weight[5]))),
                           math.pow((p * E5_C1l[5] + q * E5_C1l[4]), (weight[5] * weight[4] / (1 - weight[5])))))

E5_F_PCoB_l7 = numpy.prod((math.pow((p * E5_C1l[6] + q * E5_C1l[7]), (weight[6] * weight[7] / (1 - weight[6]))),
                           math.pow((p * E5_C1l[6] + q * E5_C1l[0]), (weight[6] * weight[0] / (1 - weight[6]))),
                           math.pow((p * E5_C1l[6] + q * E5_C1l[1]), (weight[6] * weight[1] / (1 - weight[6]))),
                           math.pow((p * E5_C1l[6] + q * E5_C1l[2]), (weight[6] * weight[2] / (1 - weight[6]))),
                           math.pow((p * E5_C1l[6] + q * E5_C1l[3]), (weight[6] * weight[3] / (1 - weight[6]))),
                           math.pow((p * E5_C1l[6] + q * E5_C1l[4]), (weight[6] * weight[4] / (1 - weight[6]))),
                           math.pow((p * E5_C1l[6] + q * E5_C1l[5]), (weight[6] * weight[5] / (1 - weight[6])))))

E5_F_PCoB_l8 = numpy.prod((math.pow((p * E5_C1l[7] + q * E5_C1l[0]), (weight[7] * weight[0] / (1 - weight[7]))),
                           math.pow((p * E5_C1l[7] + q * E5_C1l[1]), (weight[7] * weight[1] / (1 - weight[7]))),
                           math.pow((p * E5_C1l[7] + q * E5_C1l[2]), (weight[7] * weight[2] / (1 - weight[7]))),
                           math.pow((p * E5_C1l[7] + q * E5_C1l[3]), (weight[7] * weight[3] / (1 - weight[7]))),
                           math.pow((p * E5_C1l[7] + q * E5_C1l[4]), (weight[7] * weight[4] / (1 - weight[7]))),
                           math.pow((p * E5_C1l[7] + q * E5_C1l[5]), (weight[7] * weight[5] / (1 - weight[7]))),
                           math.pow((p * E5_C1l[7] + q * E5_C1l[6]), (weight[7] * weight[6] / (1 - weight[7])))))
E5_F_PCoB_l = a * numpy.prod(
    (E5_F_PCoB_l1, E5_F_PCoB_l2, E5_F_PCoB_l3, E5_F_PCoB_l4, E5_F_PCoB_l5, E5_F_PCoB_l6, E5_F_PCoB_l7, E5_F_PCoB_l8))
# </editor-fold>
# <editor-fold desc="E5_F_PCoB_m">
E5_F_PCoB_m1 = numpy.prod((math.pow((p * E5_C1m[0] + q * E5_C1m[1]), (weight[0] * weight[1] / (1 - weight[0]))),
                           math.pow((p * E5_C1m[0] + q * E5_C1m[2]), (weight[0] * weight[2] / (1 - weight[0]))),
                           math.pow((p * E5_C1m[0] + q * E5_C1m[3]), (weight[0] * weight[3] / (1 - weight[0]))),
                           math.pow((p * E5_C1m[0] + q * E5_C1m[4]), (weight[0] * weight[4] / (1 - weight[0]))),
                           math.pow((p * E5_C1m[0] + q * E5_C1m[5]), (weight[0] * weight[5] / (1 - weight[0]))),
                           math.pow((p * E5_C1m[0] + q * E5_C1m[6]), (weight[0] * weight[6] / (1 - weight[0]))),
                           math.pow((p * E5_C1m[0] + q * E5_C1m[7]), (weight[0] * weight[7] / (1 - weight[0])))))

E5_F_PCoB_m2 = numpy.prod((math.pow((p * E5_C1m[1] + q * E5_C1m[2]), (weight[1] * weight[2] / (1 - weight[1]))),
                           math.pow((p * E5_C1m[1] + q * E5_C1m[3]), (weight[1] * weight[3] / (1 - weight[1]))),
                           math.pow((p * E5_C1m[1] + q * E5_C1m[4]), (weight[1] * weight[4] / (1 - weight[1]))),
                           math.pow((p * E5_C1m[1] + q * E5_C1m[5]), (weight[1] * weight[5] / (1 - weight[1]))),
                           math.pow((p * E5_C1m[1] + q * E5_C1m[6]), (weight[1] * weight[6] / (1 - weight[1]))),
                           math.pow((p * E5_C1m[1] + q * E5_C1m[7]), (weight[1] * weight[7] / (1 - weight[1]))),
                           math.pow((p * E5_C1m[1] + q * E5_C1m[0]), (weight[1] * weight[0] / (1 - weight[1])))))

E5_F_PCoB_m3 = numpy.prod((math.pow((p * E5_C1m[2] + q * E5_C1m[3]), (weight[2] * weight[3] / (1 - weight[2]))),
                           math.pow((p * E5_C1m[2] + q * E5_C1m[4]), (weight[2] * weight[4] / (1 - weight[2]))),
                           math.pow((p * E5_C1m[2] + q * E5_C1m[5]), (weight[2] * weight[5] / (1 - weight[2]))),
                           math.pow((p * E5_C1m[2] + q * E5_C1m[6]), (weight[2] * weight[6] / (1 - weight[2]))),
                           math.pow((p * E5_C1m[2] + q * E5_C1m[7]), (weight[2] * weight[7] / (1 - weight[2]))),
                           math.pow((p * E5_C1m[2] + q * E5_C1m[0]), (weight[2] * weight[0] / (1 - weight[2]))),
                           math.pow((p * E5_C1m[2] + q * E5_C1m[1]), (weight[2] * weight[1] / (1 - weight[2])))))

E5_F_PCoB_m4 = numpy.prod((math.pow((p * E5_C1m[3] + q * E5_C1m[4]), (weight[3] * weight[4] / (1 - weight[3]))),
                           math.pow((p * E5_C1m[3] + q * E5_C1m[5]), (weight[3] * weight[5] / (1 - weight[3]))),
                           math.pow((p * E5_C1m[3] + q * E5_C1m[6]), (weight[3] * weight[6] / (1 - weight[3]))),
                           math.pow((p * E5_C1m[3] + q * E5_C1m[7]), (weight[3] * weight[7] / (1 - weight[3]))),
                           math.pow((p * E5_C1m[3] + q * E5_C1m[0]), (weight[3] * weight[0] / (1 - weight[3]))),
                           math.pow((p * E5_C1m[3] + q * E5_C1m[1]), (weight[3] * weight[1] / (1 - weight[3]))),
                           math.pow((p * E5_C1m[3] + q * E5_C1m[2]), (weight[3] * weight[2] / (1 - weight[3])))))

E5_F_PCoB_m5 = numpy.prod((math.pow((p * E5_C1m[4] + q * E5_C1m[5]), (weight[4] * weight[5] / (1 - weight[4]))),
                           math.pow((p * E5_C1m[4] + q * E5_C1m[6]), (weight[4] * weight[6] / (1 - weight[4]))),
                           math.pow((p * E5_C1m[4] + q * E5_C1m[7]), (weight[4] * weight[7] / (1 - weight[4]))),
                           math.pow((p * E5_C1m[4] + q * E5_C1m[0]), (weight[4] * weight[0] / (1 - weight[4]))),
                           math.pow((p * E5_C1m[4] + q * E5_C1m[1]), (weight[4] * weight[1] / (1 - weight[4]))),
                           math.pow((p * E5_C1m[4] + q * E5_C1m[2]), (weight[4] * weight[2] / (1 - weight[4]))),
                           math.pow((p * E5_C1m[4] + q * E5_C1m[3]), (weight[4] * weight[3] / (1 - weight[4])))))

E5_F_PCoB_m6 = numpy.prod((math.pow((p * E5_C1m[5] + q * E5_C1m[6]), (weight[5] * weight[6] / (1 - weight[5]))),
                           math.pow((p * E5_C1m[5] + q * E5_C1m[7]), (weight[5] * weight[7] / (1 - weight[5]))),
                           math.pow((p * E5_C1m[5] + q * E5_C1m[0]), (weight[5] * weight[0] / (1 - weight[5]))),
                           math.pow((p * E5_C1m[5] + q * E5_C1m[1]), (weight[5] * weight[1] / (1 - weight[5]))),
                           math.pow((p * E5_C1m[5] + q * E5_C1m[2]), (weight[5] * weight[2] / (1 - weight[5]))),
                           math.pow((p * E5_C1m[5] + q * E5_C1m[3]), (weight[5] * weight[3] / (1 - weight[5]))),
                           math.pow((p * E5_C1m[5] + q * E5_C1m[4]), (weight[5] * weight[4] / (1 - weight[5])))))

E5_F_PCoB_m7 = numpy.prod((math.pow((p * E5_C1m[6] + q * E5_C1m[7]), (weight[6] * weight[7] / (1 - weight[6]))),
                           math.pow((p * E5_C1m[6] + q * E5_C1m[0]), (weight[6] * weight[0] / (1 - weight[6]))),
                           math.pow((p * E5_C1m[6] + q * E5_C1m[1]), (weight[6] * weight[1] / (1 - weight[6]))),
                           math.pow((p * E5_C1m[6] + q * E5_C1m[2]), (weight[6] * weight[2] / (1 - weight[6]))),
                           math.pow((p * E5_C1m[6] + q * E5_C1m[3]), (weight[6] * weight[3] / (1 - weight[6]))),
                           math.pow((p * E5_C1m[6] + q * E5_C1m[4]), (weight[6] * weight[4] / (1 - weight[6]))),
                           math.pow((p * E5_C1m[6] + q * E5_C1m[5]), (weight[6] * weight[5] / (1 - weight[6])))))

E5_F_PCoB_m8 = numpy.prod((math.pow((p * E5_C1m[7] + q * E5_C1m[0]), (weight[7] * weight[0] / (1 - weight[7]))),
                           math.pow((p * E5_C1m[7] + q * E5_C1m[1]), (weight[7] * weight[1] / (1 - weight[7]))),
                           math.pow((p * E5_C1m[7] + q * E5_C1m[2]), (weight[7] * weight[2] / (1 - weight[7]))),
                           math.pow((p * E5_C1m[7] + q * E5_C1m[3]), (weight[7] * weight[3] / (1 - weight[7]))),
                           math.pow((p * E5_C1m[7] + q * E5_C1m[4]), (weight[7] * weight[4] / (1 - weight[7]))),
                           math.pow((p * E5_C1m[7] + q * E5_C1m[5]), (weight[7] * weight[5] / (1 - weight[7]))),
                           math.pow((p * E5_C1m[7] + q * E5_C1m[6]), (weight[7] * weight[6] / (1 - weight[7])))))
E5_F_PCoB_m = a * numpy.prod(
    (E5_F_PCoB_m1, E5_F_PCoB_m2, E5_F_PCoB_m3, E5_F_PCoB_m4, E5_F_PCoB_m5, E5_F_PCoB_m6, E5_F_PCoB_m7, E5_F_PCoB_m8))
# </editor-fold>
# <editor-fold desc="E5_F_PCoB_u">
E5_F_PCoB_u1 = numpy.prod((math.pow((p * E5_C1u[0] + q * E5_C1u[1]), (weight[0] * weight[1] / (1 - weight[0]))),
                           math.pow((p * E5_C1u[0] + q * E5_C1u[2]), (weight[0] * weight[2] / (1 - weight[0]))),
                           math.pow((p * E5_C1u[0] + q * E5_C1u[3]), (weight[0] * weight[3] / (1 - weight[0]))),
                           math.pow((p * E5_C1u[0] + q * E5_C1u[4]), (weight[0] * weight[4] / (1 - weight[0]))),
                           math.pow((p * E5_C1u[0] + q * E5_C1u[5]), (weight[0] * weight[5] / (1 - weight[0]))),
                           math.pow((p * E5_C1u[0] + q * E5_C1u[6]), (weight[0] * weight[6] / (1 - weight[0]))),
                           math.pow((p * E5_C1u[0] + q * E5_C1u[7]), (weight[0] * weight[7] / (1 - weight[0])))))

E5_F_PCoB_u2 = numpy.prod((math.pow((p * E5_C1u[1] + q * E5_C1u[2]), (weight[1] * weight[2] / (1 - weight[1]))),
                           math.pow((p * E5_C1u[1] + q * E5_C1u[3]), (weight[1] * weight[3] / (1 - weight[1]))),
                           math.pow((p * E5_C1u[1] + q * E5_C1u[4]), (weight[1] * weight[4] / (1 - weight[1]))),
                           math.pow((p * E5_C1u[1] + q * E5_C1u[5]), (weight[1] * weight[5] / (1 - weight[1]))),
                           math.pow((p * E5_C1u[1] + q * E5_C1u[6]), (weight[1] * weight[6] / (1 - weight[1]))),
                           math.pow((p * E5_C1u[1] + q * E5_C1u[7]), (weight[1] * weight[7] / (1 - weight[1]))),
                           math.pow((p * E5_C1u[1] + q * E5_C1u[0]), (weight[1] * weight[0] / (1 - weight[1])))))

E5_F_PCoB_u3 = numpy.prod((math.pow((p * E5_C1u[2] + q * E5_C1u[3]), (weight[2] * weight[3] / (1 - weight[2]))),
                           math.pow((p * E5_C1u[2] + q * E5_C1u[4]), (weight[2] * weight[4] / (1 - weight[2]))),
                           math.pow((p * E5_C1u[2] + q * E5_C1u[5]), (weight[2] * weight[5] / (1 - weight[2]))),
                           math.pow((p * E5_C1u[2] + q * E5_C1u[6]), (weight[2] * weight[6] / (1 - weight[2]))),
                           math.pow((p * E5_C1u[2] + q * E5_C1u[7]), (weight[2] * weight[7] / (1 - weight[2]))),
                           math.pow((p * E5_C1u[2] + q * E5_C1u[0]), (weight[2] * weight[0] / (1 - weight[2]))),
                           math.pow((p * E5_C1u[2] + q * E5_C1u[1]), (weight[2] * weight[1] / (1 - weight[2])))))

E5_F_PCoB_u4 = numpy.prod((math.pow((p * E5_C1u[3] + q * E5_C1u[4]), (weight[3] * weight[4] / (1 - weight[3]))),
                           math.pow((p * E5_C1u[3] + q * E5_C1u[5]), (weight[3] * weight[5] / (1 - weight[3]))),
                           math.pow((p * E5_C1u[3] + q * E5_C1u[6]), (weight[3] * weight[6] / (1 - weight[3]))),
                           math.pow((p * E5_C1u[3] + q * E5_C1u[7]), (weight[3] * weight[7] / (1 - weight[3]))),
                           math.pow((p * E5_C1u[3] + q * E5_C1u[0]), (weight[3] * weight[0] / (1 - weight[3]))),
                           math.pow((p * E5_C1u[3] + q * E5_C1u[1]), (weight[3] * weight[1] / (1 - weight[3]))),
                           math.pow((p * E5_C1u[3] + q * E5_C1u[2]), (weight[3] * weight[2] / (1 - weight[3])))))

E5_F_PCoB_u5 = numpy.prod((math.pow((p * E5_C1u[4] + q * E5_C1u[5]), (weight[4] * weight[5] / (1 - weight[4]))),
                           math.pow((p * E5_C1u[4] + q * E5_C1u[6]), (weight[4] * weight[6] / (1 - weight[4]))),
                           math.pow((p * E5_C1u[4] + q * E5_C1u[7]), (weight[4] * weight[7] / (1 - weight[4]))),
                           math.pow((p * E5_C1u[4] + q * E5_C1u[0]), (weight[4] * weight[0] / (1 - weight[4]))),
                           math.pow((p * E5_C1u[4] + q * E5_C1u[1]), (weight[4] * weight[1] / (1 - weight[4]))),
                           math.pow((p * E5_C1u[4] + q * E5_C1u[2]), (weight[4] * weight[2] / (1 - weight[4]))),
                           math.pow((p * E5_C1u[4] + q * E5_C1u[3]), (weight[4] * weight[3] / (1 - weight[4])))))

E5_F_PCoB_u6 = numpy.prod((math.pow((p * E5_C1u[5] + q * E5_C1u[6]), (weight[5] * weight[6] / (1 - weight[5]))),
                           math.pow((p * E5_C1u[5] + q * E5_C1u[7]), (weight[5] * weight[7] / (1 - weight[5]))),
                           math.pow((p * E5_C1u[5] + q * E5_C1u[0]), (weight[5] * weight[0] / (1 - weight[5]))),
                           math.pow((p * E5_C1u[5] + q * E5_C1u[1]), (weight[5] * weight[1] / (1 - weight[5]))),
                           math.pow((p * E5_C1u[5] + q * E5_C1u[2]), (weight[5] * weight[2] / (1 - weight[5]))),
                           math.pow((p * E5_C1u[5] + q * E5_C1u[3]), (weight[5] * weight[3] / (1 - weight[5]))),
                           math.pow((p * E5_C1u[5] + q * E5_C1u[4]), (weight[5] * weight[4] / (1 - weight[5])))))

E5_F_PCoB_u7 = numpy.prod((math.pow((p * E5_C1u[6] + q * E5_C1u[7]), (weight[6] * weight[7] / (1 - weight[6]))),
                           math.pow((p * E5_C1u[6] + q * E5_C1u[0]), (weight[6] * weight[0] / (1 - weight[6]))),
                           math.pow((p * E5_C1u[6] + q * E5_C1u[1]), (weight[6] * weight[1] / (1 - weight[6]))),
                           math.pow((p * E5_C1u[6] + q * E5_C1u[2]), (weight[6] * weight[2] / (1 - weight[6]))),
                           math.pow((p * E5_C1u[6] + q * E5_C1u[3]), (weight[6] * weight[3] / (1 - weight[6]))),
                           math.pow((p * E5_C1u[6] + q * E5_C1u[4]), (weight[6] * weight[4] / (1 - weight[6]))),
                           math.pow((p * E5_C1u[6] + q * E5_C1u[5]), (weight[6] * weight[5] / (1 - weight[6])))))

E5_F_PCoB_u8 = numpy.prod((math.pow((p * E5_C1u[7] + q * E5_C1u[0]), (weight[7] * weight[0] / (1 - weight[7]))),
                           math.pow((p * E5_C1u[7] + q * E5_C1u[1]), (weight[7] * weight[1] / (1 - weight[7]))),
                           math.pow((p * E5_C1u[7] + q * E5_C1u[2]), (weight[7] * weight[2] / (1 - weight[7]))),
                           math.pow((p * E5_C1u[7] + q * E5_C1u[3]), (weight[7] * weight[3] / (1 - weight[7]))),
                           math.pow((p * E5_C1u[7] + q * E5_C1u[4]), (weight[7] * weight[4] / (1 - weight[7]))),
                           math.pow((p * E5_C1u[7] + q * E5_C1u[5]), (weight[7] * weight[5] / (1 - weight[7]))),
                           math.pow((p * E5_C1u[7] + q * E5_C1u[6]), (weight[7] * weight[6] / (1 - weight[7])))))
E5_F_PCoB_u = a * numpy.prod(
    (E5_F_PCoB_u1, E5_F_PCoB_u2, E5_F_PCoB_u3, E5_F_PCoB_u4, E5_F_PCoB_u5, E5_F_PCoB_u6, E5_F_PCoB_u7, E5_F_PCoB_u8))
# </editor-fold>
# print(E5_F_PCoB_l)
# print(E5_F_PCoB_m)
# print(E5_F_PCoB_u)
E5_PCoB = (E5_F_PCoB_l + 4 * E5_F_PCoB_m + E5_F_PCoB_u) / 6

# E6
# <editor-fold desc="E6_F_SCoB_l">
E6_F_SCoB_l1 = sum(
    ((((weight[0] * weight[1] / (1 - weight[0])) * math.pow(E6_C1l[0], p) * math.pow(E6_C1l[1], q)),
      ((weight[0] * weight[2] / (1 - weight[0])) * math.pow(E6_C1l[0], p) * math.pow(E6_C1l[2], q)),
      ((weight[0] * weight[3] / (1 - weight[0])) * math.pow(E6_C1l[0], p) * math.pow(E6_C1l[3], q)),
      ((weight[0] * weight[4] / (1 - weight[0])) * math.pow(E6_C1l[0], p) * math.pow(E6_C1l[4], q)),
      ((weight[0] * weight[5] / (1 - weight[0])) * math.pow(E6_C1l[0], p) * math.pow(E6_C1l[5], q)),
      ((weight[0] * weight[6] / (1 - weight[0])) * math.pow(E6_C1l[0], p) * math.pow(E6_C1l[6], q)),
      ((weight[0] * weight[7] / (1 - weight[0])) * math.pow(E6_C1l[0], p) * math.pow(E6_C1l[2], q)))))

E6_F_SCoB_l2 = sum(
    ((((weight[1] * weight[2] / (1 - weight[1])) * math.pow(E6_C1l[1], p) * math.pow(E6_C1l[2], q)),
      ((weight[1] * weight[3] / (1 - weight[1])) * math.pow(E6_C1l[1], p) * math.pow(E6_C1l[3], q)),
      ((weight[1] * weight[4] / (1 - weight[1])) * math.pow(E6_C1l[1], p) * math.pow(E6_C1l[4], q)),
      ((weight[1] * weight[5] / (1 - weight[1])) * math.pow(E6_C1l[1], p) * math.pow(E6_C1l[5], q)),
      ((weight[1] * weight[6] / (1 - weight[1])) * math.pow(E6_C1l[1], p) * math.pow(E6_C1l[6], q)),
      ((weight[1] * weight[7] / (1 - weight[1])) * math.pow(E6_C1l[1], p) * math.pow(E6_C1l[7], q)),
      ((weight[1] * weight[0] / (1 - weight[1])) * math.pow(E6_C1l[1], p) * math.pow(E6_C1l[0], q)))))

E6_F_SCoB_l3 = sum(
    ((((weight[2] * weight[3] / (1 - weight[2])) * math.pow(E6_C1l[2], p) * math.pow(E6_C1l[3], q)),
      ((weight[2] * weight[4] / (1 - weight[2])) * math.pow(E6_C1l[2], p) * math.pow(E6_C1l[4], q)),
      ((weight[2] * weight[5] / (1 - weight[2])) * math.pow(E6_C1l[2], p) * math.pow(E6_C1l[5], q)),
      ((weight[2] * weight[6] / (1 - weight[2])) * math.pow(E6_C1l[2], p) * math.pow(E6_C1l[6], q)),
      ((weight[2] * weight[7] / (1 - weight[2])) * math.pow(E6_C1l[2], p) * math.pow(E6_C1l[7], q)),
      ((weight[2] * weight[0] / (1 - weight[2])) * math.pow(E6_C1l[2], p) * math.pow(E6_C1l[0], q)),
      ((weight[2] * weight[1] / (1 - weight[2])) * math.pow(E6_C1l[2], p) * math.pow(E6_C1l[1], q)))))

E6_F_SCoB_l4 = sum(
    ((((weight[3] * weight[4] / (1 - weight[3])) * math.pow(E6_C1l[3], p) * math.pow(E6_C1l[4], q)),
      ((weight[3] * weight[5] / (1 - weight[3])) * math.pow(E6_C1l[3], p) * math.pow(E6_C1l[5], q)),
      ((weight[3] * weight[6] / (1 - weight[3])) * math.pow(E6_C1l[3], p) * math.pow(E6_C1l[6], q)),
      ((weight[3] * weight[7] / (1 - weight[3])) * math.pow(E6_C1l[3], p) * math.pow(E6_C1l[7], q)),
      ((weight[3] * weight[0] / (1 - weight[3])) * math.pow(E6_C1l[3], p) * math.pow(E6_C1l[0], q)),
      ((weight[3] * weight[1] / (1 - weight[3])) * math.pow(E6_C1l[3], p) * math.pow(E6_C1l[1], q)),
      ((weight[3] * weight[2] / (1 - weight[3])) * math.pow(E6_C1l[3], p) * math.pow(E6_C1l[2], q)))))

E6_F_SCoB_l5 = sum(
    ((((weight[4] * weight[5] / (1 - weight[4])) * math.pow(E6_C1l[4], p) * math.pow(E6_C1l[5], q)),
      ((weight[4] * weight[6] / (1 - weight[4])) * math.pow(E6_C1l[4], p) * math.pow(E6_C1l[6], q)),
      ((weight[4] * weight[7] / (1 - weight[4])) * math.pow(E6_C1l[4], p) * math.pow(E6_C1l[7], q)),
      ((weight[4] * weight[0] / (1 - weight[4])) * math.pow(E6_C1l[4], p) * math.pow(E6_C1l[0], q)),
      ((weight[4] * weight[1] / (1 - weight[4])) * math.pow(E6_C1l[4], p) * math.pow(E6_C1l[1], q)),
      ((weight[4] * weight[2] / (1 - weight[4])) * math.pow(E6_C1l[4], p) * math.pow(E6_C1l[2], q)),
      ((weight[4] * weight[3] / (1 - weight[4])) * math.pow(E6_C1l[4], p) * math.pow(E6_C1l[3], q)))))

E6_F_SCoB_l6 = sum(
    ((((weight[5] * weight[6] / (1 - weight[5])) * math.pow(E6_C1l[5], p) * math.pow(E6_C1l[6], q)),
      ((weight[5] * weight[7] / (1 - weight[5])) * math.pow(E6_C1l[5], p) * math.pow(E6_C1l[7], q)),
      ((weight[5] * weight[0] / (1 - weight[5])) * math.pow(E6_C1l[5], p) * math.pow(E6_C1l[0], q)),
      ((weight[5] * weight[1] / (1 - weight[5])) * math.pow(E6_C1l[5], p) * math.pow(E6_C1l[1], q)),
      ((weight[5] * weight[2] / (1 - weight[5])) * math.pow(E6_C1l[5], p) * math.pow(E6_C1l[2], q)),
      ((weight[5] * weight[3] / (1 - weight[5])) * math.pow(E6_C1l[5], p) * math.pow(E6_C1l[3], q)),
      ((weight[5] * weight[4] / (1 - weight[5])) * math.pow(E6_C1l[5], p) * math.pow(E6_C1l[4], q)))))

E6_F_SCoB_l7 = sum(
    ((((weight[6] * weight[7] / (1 - weight[6])) * math.pow(E6_C1l[6], p) * math.pow(E6_C1l[7], q)),
      ((weight[6] * weight[0] / (1 - weight[6])) * math.pow(E6_C1l[6], p) * math.pow(E6_C1l[0], q)),
      ((weight[6] * weight[1] / (1 - weight[6])) * math.pow(E6_C1l[6], p) * math.pow(E6_C1l[1], q)),
      ((weight[6] * weight[2] / (1 - weight[6])) * math.pow(E6_C1l[6], p) * math.pow(E6_C1l[2], q)),
      ((weight[6] * weight[3] / (1 - weight[6])) * math.pow(E6_C1l[6], p) * math.pow(E6_C1l[3], q)),
      ((weight[6] * weight[4] / (1 - weight[6])) * math.pow(E6_C1l[6], p) * math.pow(E6_C1l[4], q)),
      ((weight[6] * weight[5] / (1 - weight[6])) * math.pow(E6_C1l[6], p) * math.pow(E6_C1l[5], q)))))

E6_F_SCoB_l8 = sum(
    ((((weight[7] * weight[0] / (1 - weight[7])) * math.pow(E6_C1l[7], p) * math.pow(E6_C1l[0], q)),
      ((weight[7] * weight[1] / (1 - weight[7])) * math.pow(E6_C1l[7], p) * math.pow(E6_C1l[1], q)),
      ((weight[7] * weight[2] / (1 - weight[7])) * math.pow(E6_C1l[7], p) * math.pow(E6_C1l[2], q)),
      ((weight[7] * weight[3] / (1 - weight[7])) * math.pow(E6_C1l[7], p) * math.pow(E6_C1l[3], q)),
      ((weight[7] * weight[4] / (1 - weight[7])) * math.pow(E6_C1l[7], p) * math.pow(E6_C1l[4], q)),
      ((weight[7] * weight[5] / (1 - weight[7])) * math.pow(E6_C1l[7], p) * math.pow(E6_C1l[5], q)),
      ((weight[7] * weight[6] / (1 - weight[7])) * math.pow(E6_C1l[7], p) * math.pow(E6_C1l[6], q)))))
E6_F_SCoB_l = pow(sum(
    (E6_F_SCoB_l1, E6_F_SCoB_l2, E6_F_SCoB_l3, E6_F_SCoB_l4, E6_F_SCoB_l5, E6_F_SCoB_l6, E6_F_SCoB_l7, E6_F_SCoB_l8)),
    a)
# </editor-fold>
# <editor-fold desc="E6_F_SCoB_m">
E6_F_SCoB_m1 = sum(
    ((((weight[0] * weight[1] / (1 - weight[0])) * math.pow(E6_C1m[0], p) * math.pow(E6_C1m[1], q)),
      ((weight[0] * weight[2] / (1 - weight[0])) * math.pow(E6_C1m[0], p) * math.pow(E6_C1m[2], q)),
      ((weight[0] * weight[3] / (1 - weight[0])) * math.pow(E6_C1m[0], p) * math.pow(E6_C1m[3], q)),
      ((weight[0] * weight[4] / (1 - weight[0])) * math.pow(E6_C1m[0], p) * math.pow(E6_C1m[4], q)),
      ((weight[0] * weight[5] / (1 - weight[0])) * math.pow(E6_C1m[0], p) * math.pow(E6_C1m[5], q)),
      ((weight[0] * weight[6] / (1 - weight[0])) * math.pow(E6_C1m[0], p) * math.pow(E6_C1m[6], q)),
      ((weight[0] * weight[7] / (1 - weight[0])) * math.pow(E6_C1m[0], p) * math.pow(E6_C1m[2], q)))))

E6_F_SCoB_m2 = sum(
    ((((weight[1] * weight[2] / (1 - weight[1])) * math.pow(E6_C1m[1], p) * math.pow(E6_C1m[2], q)),
      ((weight[1] * weight[3] / (1 - weight[1])) * math.pow(E6_C1m[1], p) * math.pow(E6_C1m[3], q)),
      ((weight[1] * weight[4] / (1 - weight[1])) * math.pow(E6_C1m[1], p) * math.pow(E6_C1m[4], q)),
      ((weight[1] * weight[5] / (1 - weight[1])) * math.pow(E6_C1m[1], p) * math.pow(E6_C1m[5], q)),
      ((weight[1] * weight[6] / (1 - weight[1])) * math.pow(E6_C1m[1], p) * math.pow(E6_C1m[6], q)),
      ((weight[1] * weight[7] / (1 - weight[1])) * math.pow(E6_C1m[1], p) * math.pow(E6_C1m[7], q)),
      ((weight[1] * weight[0] / (1 - weight[1])) * math.pow(E6_C1m[1], p) * math.pow(E6_C1m[0], q)))))

E6_F_SCoB_m3 = sum(
    ((((weight[2] * weight[3] / (1 - weight[2])) * math.pow(E6_C1m[2], p) * math.pow(E6_C1m[3], q)),
      ((weight[2] * weight[4] / (1 - weight[2])) * math.pow(E6_C1m[2], p) * math.pow(E6_C1m[4], q)),
      ((weight[2] * weight[5] / (1 - weight[2])) * math.pow(E6_C1m[2], p) * math.pow(E6_C1m[5], q)),
      ((weight[2] * weight[6] / (1 - weight[2])) * math.pow(E6_C1m[2], p) * math.pow(E6_C1m[6], q)),
      ((weight[2] * weight[7] / (1 - weight[2])) * math.pow(E6_C1m[2], p) * math.pow(E6_C1m[7], q)),
      ((weight[2] * weight[0] / (1 - weight[2])) * math.pow(E6_C1m[2], p) * math.pow(E6_C1m[0], q)),
      ((weight[2] * weight[1] / (1 - weight[2])) * math.pow(E6_C1m[2], p) * math.pow(E6_C1m[1], q)))))

E6_F_SCoB_m4 = sum(
    ((((weight[3] * weight[4] / (1 - weight[3])) * math.pow(E6_C1m[3], p) * math.pow(E6_C1m[4], q)),
      ((weight[3] * weight[5] / (1 - weight[3])) * math.pow(E6_C1m[3], p) * math.pow(E6_C1m[5], q)),
      ((weight[3] * weight[6] / (1 - weight[3])) * math.pow(E6_C1m[3], p) * math.pow(E6_C1m[6], q)),
      ((weight[3] * weight[7] / (1 - weight[3])) * math.pow(E6_C1m[3], p) * math.pow(E6_C1m[7], q)),
      ((weight[3] * weight[0] / (1 - weight[3])) * math.pow(E6_C1m[3], p) * math.pow(E6_C1m[0], q)),
      ((weight[3] * weight[1] / (1 - weight[3])) * math.pow(E6_C1m[3], p) * math.pow(E6_C1m[1], q)),
      ((weight[3] * weight[2] / (1 - weight[3])) * math.pow(E6_C1m[3], p) * math.pow(E6_C1m[2], q)))))

E6_F_SCoB_m5 = sum(
    ((((weight[4] * weight[5] / (1 - weight[4])) * math.pow(E6_C1m[4], p) * math.pow(E6_C1m[5], q)),
      ((weight[4] * weight[6] / (1 - weight[4])) * math.pow(E6_C1m[4], p) * math.pow(E6_C1m[6], q)),
      ((weight[4] * weight[7] / (1 - weight[4])) * math.pow(E6_C1m[4], p) * math.pow(E6_C1m[7], q)),
      ((weight[4] * weight[0] / (1 - weight[4])) * math.pow(E6_C1m[4], p) * math.pow(E6_C1m[0], q)),
      ((weight[4] * weight[1] / (1 - weight[4])) * math.pow(E6_C1m[4], p) * math.pow(E6_C1m[1], q)),
      ((weight[4] * weight[2] / (1 - weight[4])) * math.pow(E6_C1m[4], p) * math.pow(E6_C1m[2], q)),
      ((weight[4] * weight[3] / (1 - weight[4])) * math.pow(E6_C1m[4], p) * math.pow(E6_C1m[3], q)))))

E6_F_SCoB_m6 = sum(
    ((((weight[5] * weight[6] / (1 - weight[5])) * math.pow(E6_C1m[5], p) * math.pow(E6_C1m[6], q)),
      ((weight[5] * weight[7] / (1 - weight[5])) * math.pow(E6_C1m[5], p) * math.pow(E6_C1m[7], q)),
      ((weight[5] * weight[0] / (1 - weight[5])) * math.pow(E6_C1m[5], p) * math.pow(E6_C1m[0], q)),
      ((weight[5] * weight[1] / (1 - weight[5])) * math.pow(E6_C1m[5], p) * math.pow(E6_C1m[1], q)),
      ((weight[5] * weight[2] / (1 - weight[5])) * math.pow(E6_C1m[5], p) * math.pow(E6_C1m[2], q)),
      ((weight[5] * weight[3] / (1 - weight[5])) * math.pow(E6_C1m[5], p) * math.pow(E6_C1m[3], q)),
      ((weight[5] * weight[4] / (1 - weight[5])) * math.pow(E6_C1m[5], p) * math.pow(E6_C1m[4], q)))))

E6_F_SCoB_m7 = sum(
    ((((weight[6] * weight[7] / (1 - weight[6])) * math.pow(E6_C1m[6], p) * math.pow(E6_C1m[7], q)),
      ((weight[6] * weight[0] / (1 - weight[6])) * math.pow(E6_C1m[6], p) * math.pow(E6_C1m[0], q)),
      ((weight[6] * weight[1] / (1 - weight[6])) * math.pow(E6_C1m[6], p) * math.pow(E6_C1m[1], q)),
      ((weight[6] * weight[2] / (1 - weight[6])) * math.pow(E6_C1m[6], p) * math.pow(E6_C1m[2], q)),
      ((weight[6] * weight[3] / (1 - weight[6])) * math.pow(E6_C1m[6], p) * math.pow(E6_C1m[3], q)),
      ((weight[6] * weight[4] / (1 - weight[6])) * math.pow(E6_C1m[6], p) * math.pow(E6_C1m[4], q)),
      ((weight[6] * weight[5] / (1 - weight[6])) * math.pow(E6_C1m[6], p) * math.pow(E6_C1m[5], q)))))

E6_F_SCoB_m8 = sum(
    ((((weight[7] * weight[0] / (1 - weight[7])) * math.pow(E6_C1m[7], p) * math.pow(E6_C1m[0], q)),
      ((weight[7] * weight[1] / (1 - weight[7])) * math.pow(E6_C1m[7], p) * math.pow(E6_C1m[1], q)),
      ((weight[7] * weight[2] / (1 - weight[7])) * math.pow(E6_C1m[7], p) * math.pow(E6_C1m[2], q)),
      ((weight[7] * weight[3] / (1 - weight[7])) * math.pow(E6_C1m[7], p) * math.pow(E6_C1m[3], q)),
      ((weight[7] * weight[4] / (1 - weight[7])) * math.pow(E6_C1m[7], p) * math.pow(E6_C1m[4], q)),
      ((weight[7] * weight[5] / (1 - weight[7])) * math.pow(E6_C1m[7], p) * math.pow(E6_C1m[5], q)),
      ((weight[7] * weight[6] / (1 - weight[7])) * math.pow(E6_C1m[7], p) * math.pow(E6_C1m[6], q)))))
E6_F_SCoB_m = pow(sum(
    (E6_F_SCoB_m1, E6_F_SCoB_m2, E6_F_SCoB_m3, E6_F_SCoB_m4, E6_F_SCoB_m5, E6_F_SCoB_m6, E6_F_SCoB_m7, E6_F_SCoB_m8)),
    a)
# </editor-fold>
# <editor-fold desc="E6_F_SCoB_u">
E6_F_SCoB_u1 = sum(
    ((((weight[0] * weight[1] / (1 - weight[0])) * math.pow(E6_C1u[0], p) * math.pow(E6_C1u[1], q)),
      ((weight[0] * weight[2] / (1 - weight[0])) * math.pow(E6_C1u[0], p) * math.pow(E6_C1u[2], q)),
      ((weight[0] * weight[3] / (1 - weight[0])) * math.pow(E6_C1u[0], p) * math.pow(E6_C1u[3], q)),
      ((weight[0] * weight[4] / (1 - weight[0])) * math.pow(E6_C1u[0], p) * math.pow(E6_C1u[4], q)),
      ((weight[0] * weight[5] / (1 - weight[0])) * math.pow(E6_C1u[0], p) * math.pow(E6_C1u[5], q)),
      ((weight[0] * weight[6] / (1 - weight[0])) * math.pow(E6_C1u[0], p) * math.pow(E6_C1u[6], q)),
      ((weight[0] * weight[7] / (1 - weight[0])) * math.pow(E6_C1u[0], p) * math.pow(E6_C1u[2], q)))))

E6_F_SCoB_u2 = sum(
    ((((weight[1] * weight[2] / (1 - weight[1])) * math.pow(E6_C1u[1], p) * math.pow(E6_C1u[2], q)),
      ((weight[1] * weight[3] / (1 - weight[1])) * math.pow(E6_C1u[1], p) * math.pow(E6_C1u[3], q)),
      ((weight[1] * weight[4] / (1 - weight[1])) * math.pow(E6_C1u[1], p) * math.pow(E6_C1u[4], q)),
      ((weight[1] * weight[5] / (1 - weight[1])) * math.pow(E6_C1u[1], p) * math.pow(E6_C1u[5], q)),
      ((weight[1] * weight[6] / (1 - weight[1])) * math.pow(E6_C1u[1], p) * math.pow(E6_C1u[6], q)),
      ((weight[1] * weight[7] / (1 - weight[1])) * math.pow(E6_C1u[1], p) * math.pow(E6_C1u[7], q)),
      ((weight[1] * weight[0] / (1 - weight[1])) * math.pow(E6_C1u[1], p) * math.pow(E6_C1u[0], q)))))

E6_F_SCoB_u3 = sum(
    ((((weight[2] * weight[3] / (1 - weight[2])) * math.pow(E6_C1u[2], p) * math.pow(E6_C1u[3], q)),
      ((weight[2] * weight[4] / (1 - weight[2])) * math.pow(E6_C1u[2], p) * math.pow(E6_C1u[4], q)),
      ((weight[2] * weight[5] / (1 - weight[2])) * math.pow(E6_C1u[2], p) * math.pow(E6_C1u[5], q)),
      ((weight[2] * weight[6] / (1 - weight[2])) * math.pow(E6_C1u[2], p) * math.pow(E6_C1u[6], q)),
      ((weight[2] * weight[7] / (1 - weight[2])) * math.pow(E6_C1u[2], p) * math.pow(E6_C1u[7], q)),
      ((weight[2] * weight[0] / (1 - weight[2])) * math.pow(E6_C1u[2], p) * math.pow(E6_C1u[0], q)),
      ((weight[2] * weight[1] / (1 - weight[2])) * math.pow(E6_C1u[2], p) * math.pow(E6_C1u[1], q)))))

E6_F_SCoB_u4 = sum(
    ((((weight[3] * weight[4] / (1 - weight[3])) * math.pow(E6_C1u[3], p) * math.pow(E6_C1u[4], q)),
      ((weight[3] * weight[5] / (1 - weight[3])) * math.pow(E6_C1u[3], p) * math.pow(E6_C1u[5], q)),
      ((weight[3] * weight[6] / (1 - weight[3])) * math.pow(E6_C1u[3], p) * math.pow(E6_C1u[6], q)),
      ((weight[3] * weight[7] / (1 - weight[3])) * math.pow(E6_C1u[3], p) * math.pow(E6_C1u[7], q)),
      ((weight[3] * weight[0] / (1 - weight[3])) * math.pow(E6_C1u[3], p) * math.pow(E6_C1u[0], q)),
      ((weight[3] * weight[1] / (1 - weight[3])) * math.pow(E6_C1u[3], p) * math.pow(E6_C1u[1], q)),
      ((weight[3] * weight[2] / (1 - weight[3])) * math.pow(E6_C1u[3], p) * math.pow(E6_C1u[2], q)))))

E6_F_SCoB_u5 = sum(
    ((((weight[4] * weight[5] / (1 - weight[4])) * math.pow(E6_C1u[4], p) * math.pow(E6_C1u[5], q)),
      ((weight[4] * weight[6] / (1 - weight[4])) * math.pow(E6_C1u[4], p) * math.pow(E6_C1u[6], q)),
      ((weight[4] * weight[7] / (1 - weight[4])) * math.pow(E6_C1u[4], p) * math.pow(E6_C1u[7], q)),
      ((weight[4] * weight[0] / (1 - weight[4])) * math.pow(E6_C1u[4], p) * math.pow(E6_C1u[0], q)),
      ((weight[4] * weight[1] / (1 - weight[4])) * math.pow(E6_C1u[4], p) * math.pow(E6_C1u[1], q)),
      ((weight[4] * weight[2] / (1 - weight[4])) * math.pow(E6_C1u[4], p) * math.pow(E6_C1u[2], q)),
      ((weight[4] * weight[3] / (1 - weight[4])) * math.pow(E6_C1u[4], p) * math.pow(E6_C1u[3], q)))))

E6_F_SCoB_u6 = sum(
    ((((weight[5] * weight[6] / (1 - weight[5])) * math.pow(E6_C1u[5], p) * math.pow(E6_C1u[6], q)),
      ((weight[5] * weight[7] / (1 - weight[5])) * math.pow(E6_C1u[5], p) * math.pow(E6_C1u[7], q)),
      ((weight[5] * weight[0] / (1 - weight[5])) * math.pow(E6_C1u[5], p) * math.pow(E6_C1u[0], q)),
      ((weight[5] * weight[1] / (1 - weight[5])) * math.pow(E6_C1u[5], p) * math.pow(E6_C1u[1], q)),
      ((weight[5] * weight[2] / (1 - weight[5])) * math.pow(E6_C1u[5], p) * math.pow(E6_C1u[2], q)),
      ((weight[5] * weight[3] / (1 - weight[5])) * math.pow(E6_C1u[5], p) * math.pow(E6_C1u[3], q)),
      ((weight[5] * weight[4] / (1 - weight[5])) * math.pow(E6_C1u[5], p) * math.pow(E6_C1u[4], q)))))

E6_F_SCoB_u7 = sum(
    ((((weight[6] * weight[7] / (1 - weight[6])) * math.pow(E6_C1u[6], p) * math.pow(E6_C1u[7], q)),
      ((weight[6] * weight[0] / (1 - weight[6])) * math.pow(E6_C1u[6], p) * math.pow(E6_C1u[0], q)),
      ((weight[6] * weight[1] / (1 - weight[6])) * math.pow(E6_C1u[6], p) * math.pow(E6_C1u[1], q)),
      ((weight[6] * weight[2] / (1 - weight[6])) * math.pow(E6_C1u[6], p) * math.pow(E6_C1u[2], q)),
      ((weight[6] * weight[3] / (1 - weight[6])) * math.pow(E6_C1u[6], p) * math.pow(E6_C1u[3], q)),
      ((weight[6] * weight[4] / (1 - weight[6])) * math.pow(E6_C1u[6], p) * math.pow(E6_C1u[4], q)),
      ((weight[6] * weight[5] / (1 - weight[6])) * math.pow(E6_C1u[6], p) * math.pow(E6_C1u[5], q)))))

E6_F_SCoB_u8 = sum(
    ((((weight[7] * weight[0] / (1 - weight[7])) * math.pow(E6_C1u[7], p) * math.pow(E6_C1u[0], q)),
      ((weight[7] * weight[1] / (1 - weight[7])) * math.pow(E6_C1u[7], p) * math.pow(E6_C1u[1], q)),
      ((weight[7] * weight[2] / (1 - weight[7])) * math.pow(E6_C1u[7], p) * math.pow(E6_C1u[2], q)),
      ((weight[7] * weight[3] / (1 - weight[7])) * math.pow(E6_C1u[7], p) * math.pow(E6_C1u[3], q)),
      ((weight[7] * weight[4] / (1 - weight[7])) * math.pow(E6_C1u[7], p) * math.pow(E6_C1u[4], q)),
      ((weight[7] * weight[5] / (1 - weight[7])) * math.pow(E6_C1u[7], p) * math.pow(E6_C1u[5], q)),
      ((weight[7] * weight[6] / (1 - weight[7])) * math.pow(E6_C1u[7], p) * math.pow(E6_C1u[6], q)))))
E6_F_SCoB_u = pow(sum(
    (E6_F_SCoB_u1, E6_F_SCoB_u2, E6_F_SCoB_u3, E6_F_SCoB_u4, E6_F_SCoB_u5, E6_F_SCoB_u6, E6_F_SCoB_u7, E6_F_SCoB_u8)),
    a)
# </editor-fold>
# print(E6_F_SCoB_l)
# print(E6_F_SCoB_m)
# print(E6_F_SCoB_u)
E6_SCoB = (E6_F_SCoB_l + 4 * E6_F_SCoB_m + E6_F_SCoB_u) / 6

# <editor-fold desc="E6_F_PCoB_l">
E6_F_PCoB_l1 = numpy.prod((math.pow((p * E6_C1l[0] + q * E6_C1l[1]), (weight[0] * weight[1] / (1 - weight[0]))),
                           math.pow((p * E6_C1l[0] + q * E6_C1l[2]), (weight[0] * weight[2] / (1 - weight[0]))),
                           math.pow((p * E6_C1l[0] + q * E6_C1l[3]), (weight[0] * weight[3] / (1 - weight[0]))),
                           math.pow((p * E6_C1l[0] + q * E6_C1l[4]), (weight[0] * weight[4] / (1 - weight[0]))),
                           math.pow((p * E6_C1l[0] + q * E6_C1l[5]), (weight[0] * weight[5] / (1 - weight[0]))),
                           math.pow((p * E6_C1l[0] + q * E6_C1l[6]), (weight[0] * weight[6] / (1 - weight[0]))),
                           math.pow((p * E6_C1l[0] + q * E6_C1l[7]), (weight[0] * weight[7] / (1 - weight[0])))))

E6_F_PCoB_l2 = numpy.prod((math.pow((p * E6_C1l[1] + q * E6_C1l[2]), (weight[1] * weight[2] / (1 - weight[1]))),
                           math.pow((p * E6_C1l[1] + q * E6_C1l[3]), (weight[1] * weight[3] / (1 - weight[1]))),
                           math.pow((p * E6_C1l[1] + q * E6_C1l[4]), (weight[1] * weight[4] / (1 - weight[1]))),
                           math.pow((p * E6_C1l[1] + q * E6_C1l[5]), (weight[1] * weight[5] / (1 - weight[1]))),
                           math.pow((p * E6_C1l[1] + q * E6_C1l[6]), (weight[1] * weight[6] / (1 - weight[1]))),
                           math.pow((p * E6_C1l[1] + q * E6_C1l[7]), (weight[1] * weight[7] / (1 - weight[1]))),
                           math.pow((p * E6_C1l[1] + q * E6_C1l[0]), (weight[1] * weight[0] / (1 - weight[1])))))

E6_F_PCoB_l3 = numpy.prod((math.pow((p * E6_C1l[2] + q * E6_C1l[3]), (weight[2] * weight[3] / (1 - weight[2]))),
                           math.pow((p * E6_C1l[2] + q * E6_C1l[4]), (weight[2] * weight[4] / (1 - weight[2]))),
                           math.pow((p * E6_C1l[2] + q * E6_C1l[5]), (weight[2] * weight[5] / (1 - weight[2]))),
                           math.pow((p * E6_C1l[2] + q * E6_C1l[6]), (weight[2] * weight[6] / (1 - weight[2]))),
                           math.pow((p * E6_C1l[2] + q * E6_C1l[7]), (weight[2] * weight[7] / (1 - weight[2]))),
                           math.pow((p * E6_C1l[2] + q * E6_C1l[0]), (weight[2] * weight[0] / (1 - weight[2]))),
                           math.pow((p * E6_C1l[2] + q * E6_C1l[1]), (weight[2] * weight[1] / (1 - weight[2])))))

E6_F_PCoB_l4 = numpy.prod((math.pow((p * E6_C1l[3] + q * E6_C1l[4]), (weight[3] * weight[4] / (1 - weight[3]))),
                           math.pow((p * E6_C1l[3] + q * E6_C1l[5]), (weight[3] * weight[5] / (1 - weight[3]))),
                           math.pow((p * E6_C1l[3] + q * E6_C1l[6]), (weight[3] * weight[6] / (1 - weight[3]))),
                           math.pow((p * E6_C1l[3] + q * E6_C1l[7]), (weight[3] * weight[7] / (1 - weight[3]))),
                           math.pow((p * E6_C1l[3] + q * E6_C1l[0]), (weight[3] * weight[0] / (1 - weight[3]))),
                           math.pow((p * E6_C1l[3] + q * E6_C1l[1]), (weight[3] * weight[1] / (1 - weight[3]))),
                           math.pow((p * E6_C1l[3] + q * E6_C1l[2]), (weight[3] * weight[2] / (1 - weight[3])))))

E6_F_PCoB_l5 = numpy.prod((math.pow((p * E6_C1l[4] + q * E6_C1l[5]), (weight[4] * weight[5] / (1 - weight[4]))),
                           math.pow((p * E6_C1l[4] + q * E6_C1l[6]), (weight[4] * weight[6] / (1 - weight[4]))),
                           math.pow((p * E6_C1l[4] + q * E6_C1l[7]), (weight[4] * weight[7] / (1 - weight[4]))),
                           math.pow((p * E6_C1l[4] + q * E6_C1l[0]), (weight[4] * weight[0] / (1 - weight[4]))),
                           math.pow((p * E6_C1l[4] + q * E6_C1l[1]), (weight[4] * weight[1] / (1 - weight[4]))),
                           math.pow((p * E6_C1l[4] + q * E6_C1l[2]), (weight[4] * weight[2] / (1 - weight[4]))),
                           math.pow((p * E6_C1l[4] + q * E6_C1l[3]), (weight[4] * weight[3] / (1 - weight[4])))))

E6_F_PCoB_l6 = numpy.prod((math.pow((p * E6_C1l[5] + q * E6_C1l[6]), (weight[5] * weight[6] / (1 - weight[5]))),
                           math.pow((p * E6_C1l[5] + q * E6_C1l[7]), (weight[5] * weight[7] / (1 - weight[5]))),
                           math.pow((p * E6_C1l[5] + q * E6_C1l[0]), (weight[5] * weight[0] / (1 - weight[5]))),
                           math.pow((p * E6_C1l[5] + q * E6_C1l[1]), (weight[5] * weight[1] / (1 - weight[5]))),
                           math.pow((p * E6_C1l[5] + q * E6_C1l[2]), (weight[5] * weight[2] / (1 - weight[5]))),
                           math.pow((p * E6_C1l[5] + q * E6_C1l[3]), (weight[5] * weight[3] / (1 - weight[5]))),
                           math.pow((p * E6_C1l[5] + q * E6_C1l[4]), (weight[5] * weight[4] / (1 - weight[5])))))

E6_F_PCoB_l7 = numpy.prod((math.pow((p * E6_C1l[6] + q * E6_C1l[7]), (weight[6] * weight[7] / (1 - weight[6]))),
                           math.pow((p * E6_C1l[6] + q * E6_C1l[0]), (weight[6] * weight[0] / (1 - weight[6]))),
                           math.pow((p * E6_C1l[6] + q * E6_C1l[1]), (weight[6] * weight[1] / (1 - weight[6]))),
                           math.pow((p * E6_C1l[6] + q * E6_C1l[2]), (weight[6] * weight[2] / (1 - weight[6]))),
                           math.pow((p * E6_C1l[6] + q * E6_C1l[3]), (weight[6] * weight[3] / (1 - weight[6]))),
                           math.pow((p * E6_C1l[6] + q * E6_C1l[4]), (weight[6] * weight[4] / (1 - weight[6]))),
                           math.pow((p * E6_C1l[6] + q * E6_C1l[5]), (weight[6] * weight[5] / (1 - weight[6])))))

E6_F_PCoB_l8 = numpy.prod((math.pow((p * E6_C1l[7] + q * E6_C1l[0]), (weight[7] * weight[0] / (1 - weight[7]))),
                           math.pow((p * E6_C1l[7] + q * E6_C1l[1]), (weight[7] * weight[1] / (1 - weight[7]))),
                           math.pow((p * E6_C1l[7] + q * E6_C1l[2]), (weight[7] * weight[2] / (1 - weight[7]))),
                           math.pow((p * E6_C1l[7] + q * E6_C1l[3]), (weight[7] * weight[3] / (1 - weight[7]))),
                           math.pow((p * E6_C1l[7] + q * E6_C1l[4]), (weight[7] * weight[4] / (1 - weight[7]))),
                           math.pow((p * E6_C1l[7] + q * E6_C1l[5]), (weight[7] * weight[5] / (1 - weight[7]))),
                           math.pow((p * E6_C1l[7] + q * E6_C1l[6]), (weight[7] * weight[6] / (1 - weight[7])))))
E6_F_PCoB_l = a * numpy.prod(
    (E6_F_PCoB_l1, E6_F_PCoB_l2, E6_F_PCoB_l3, E6_F_PCoB_l4, E6_F_PCoB_l5, E6_F_PCoB_l6, E6_F_PCoB_l7, E6_F_PCoB_l8))
# </editor-fold>
# <editor-fold desc="E6_F_PCoB_m">
E6_F_PCoB_m1 = numpy.prod((math.pow((p * E6_C1m[0] + q * E6_C1m[1]), (weight[0] * weight[1] / (1 - weight[0]))),
                           math.pow((p * E6_C1m[0] + q * E6_C1m[2]), (weight[0] * weight[2] / (1 - weight[0]))),
                           math.pow((p * E6_C1m[0] + q * E6_C1m[3]), (weight[0] * weight[3] / (1 - weight[0]))),
                           math.pow((p * E6_C1m[0] + q * E6_C1m[4]), (weight[0] * weight[4] / (1 - weight[0]))),
                           math.pow((p * E6_C1m[0] + q * E6_C1m[5]), (weight[0] * weight[5] / (1 - weight[0]))),
                           math.pow((p * E6_C1m[0] + q * E6_C1m[6]), (weight[0] * weight[6] / (1 - weight[0]))),
                           math.pow((p * E6_C1m[0] + q * E6_C1m[7]), (weight[0] * weight[7] / (1 - weight[0])))))

E6_F_PCoB_m2 = numpy.prod((math.pow((p * E6_C1m[1] + q * E6_C1m[2]), (weight[1] * weight[2] / (1 - weight[1]))),
                           math.pow((p * E6_C1m[1] + q * E6_C1m[3]), (weight[1] * weight[3] / (1 - weight[1]))),
                           math.pow((p * E6_C1m[1] + q * E6_C1m[4]), (weight[1] * weight[4] / (1 - weight[1]))),
                           math.pow((p * E6_C1m[1] + q * E6_C1m[5]), (weight[1] * weight[5] / (1 - weight[1]))),
                           math.pow((p * E6_C1m[1] + q * E6_C1m[6]), (weight[1] * weight[6] / (1 - weight[1]))),
                           math.pow((p * E6_C1m[1] + q * E6_C1m[7]), (weight[1] * weight[7] / (1 - weight[1]))),
                           math.pow((p * E6_C1m[1] + q * E6_C1m[0]), (weight[1] * weight[0] / (1 - weight[1])))))

E6_F_PCoB_m3 = numpy.prod((math.pow((p * E6_C1m[2] + q * E6_C1m[3]), (weight[2] * weight[3] / (1 - weight[2]))),
                           math.pow((p * E6_C1m[2] + q * E6_C1m[4]), (weight[2] * weight[4] / (1 - weight[2]))),
                           math.pow((p * E6_C1m[2] + q * E6_C1m[5]), (weight[2] * weight[5] / (1 - weight[2]))),
                           math.pow((p * E6_C1m[2] + q * E6_C1m[6]), (weight[2] * weight[6] / (1 - weight[2]))),
                           math.pow((p * E6_C1m[2] + q * E6_C1m[7]), (weight[2] * weight[7] / (1 - weight[2]))),
                           math.pow((p * E6_C1m[2] + q * E6_C1m[0]), (weight[2] * weight[0] / (1 - weight[2]))),
                           math.pow((p * E6_C1m[2] + q * E6_C1m[1]), (weight[2] * weight[1] / (1 - weight[2])))))

E6_F_PCoB_m4 = numpy.prod((math.pow((p * E6_C1m[3] + q * E6_C1m[4]), (weight[3] * weight[4] / (1 - weight[3]))),
                           math.pow((p * E6_C1m[3] + q * E6_C1m[5]), (weight[3] * weight[5] / (1 - weight[3]))),
                           math.pow((p * E6_C1m[3] + q * E6_C1m[6]), (weight[3] * weight[6] / (1 - weight[3]))),
                           math.pow((p * E6_C1m[3] + q * E6_C1m[7]), (weight[3] * weight[7] / (1 - weight[3]))),
                           math.pow((p * E6_C1m[3] + q * E6_C1m[0]), (weight[3] * weight[0] / (1 - weight[3]))),
                           math.pow((p * E6_C1m[3] + q * E6_C1m[1]), (weight[3] * weight[1] / (1 - weight[3]))),
                           math.pow((p * E6_C1m[3] + q * E6_C1m[2]), (weight[3] * weight[2] / (1 - weight[3])))))

E6_F_PCoB_m5 = numpy.prod((math.pow((p * E6_C1m[4] + q * E6_C1m[5]), (weight[4] * weight[5] / (1 - weight[4]))),
                           math.pow((p * E6_C1m[4] + q * E6_C1m[6]), (weight[4] * weight[6] / (1 - weight[4]))),
                           math.pow((p * E6_C1m[4] + q * E6_C1m[7]), (weight[4] * weight[7] / (1 - weight[4]))),
                           math.pow((p * E6_C1m[4] + q * E6_C1m[0]), (weight[4] * weight[0] / (1 - weight[4]))),
                           math.pow((p * E6_C1m[4] + q * E6_C1m[1]), (weight[4] * weight[1] / (1 - weight[4]))),
                           math.pow((p * E6_C1m[4] + q * E6_C1m[2]), (weight[4] * weight[2] / (1 - weight[4]))),
                           math.pow((p * E6_C1m[4] + q * E6_C1m[3]), (weight[4] * weight[3] / (1 - weight[4])))))

E6_F_PCoB_m6 = numpy.prod((math.pow((p * E6_C1m[5] + q * E6_C1m[6]), (weight[5] * weight[6] / (1 - weight[5]))),
                           math.pow((p * E6_C1m[5] + q * E6_C1m[7]), (weight[5] * weight[7] / (1 - weight[5]))),
                           math.pow((p * E6_C1m[5] + q * E6_C1m[0]), (weight[5] * weight[0] / (1 - weight[5]))),
                           math.pow((p * E6_C1m[5] + q * E6_C1m[1]), (weight[5] * weight[1] / (1 - weight[5]))),
                           math.pow((p * E6_C1m[5] + q * E6_C1m[2]), (weight[5] * weight[2] / (1 - weight[5]))),
                           math.pow((p * E6_C1m[5] + q * E6_C1m[3]), (weight[5] * weight[3] / (1 - weight[5]))),
                           math.pow((p * E6_C1m[5] + q * E6_C1m[4]), (weight[5] * weight[4] / (1 - weight[5])))))

E6_F_PCoB_m7 = numpy.prod((math.pow((p * E6_C1m[6] + q * E6_C1m[7]), (weight[6] * weight[7] / (1 - weight[6]))),
                           math.pow((p * E6_C1m[6] + q * E6_C1m[0]), (weight[6] * weight[0] / (1 - weight[6]))),
                           math.pow((p * E6_C1m[6] + q * E6_C1m[1]), (weight[6] * weight[1] / (1 - weight[6]))),
                           math.pow((p * E6_C1m[6] + q * E6_C1m[2]), (weight[6] * weight[2] / (1 - weight[6]))),
                           math.pow((p * E6_C1m[6] + q * E6_C1m[3]), (weight[6] * weight[3] / (1 - weight[6]))),
                           math.pow((p * E6_C1m[6] + q * E6_C1m[4]), (weight[6] * weight[4] / (1 - weight[6]))),
                           math.pow((p * E6_C1m[6] + q * E6_C1m[5]), (weight[6] * weight[5] / (1 - weight[6])))))

E6_F_PCoB_m8 = numpy.prod((math.pow((p * E6_C1m[7] + q * E6_C1m[0]), (weight[7] * weight[0] / (1 - weight[7]))),
                           math.pow((p * E6_C1m[7] + q * E6_C1m[1]), (weight[7] * weight[1] / (1 - weight[7]))),
                           math.pow((p * E6_C1m[7] + q * E6_C1m[2]), (weight[7] * weight[2] / (1 - weight[7]))),
                           math.pow((p * E6_C1m[7] + q * E6_C1m[3]), (weight[7] * weight[3] / (1 - weight[7]))),
                           math.pow((p * E6_C1m[7] + q * E6_C1m[4]), (weight[7] * weight[4] / (1 - weight[7]))),
                           math.pow((p * E6_C1m[7] + q * E6_C1m[5]), (weight[7] * weight[5] / (1 - weight[7]))),
                           math.pow((p * E6_C1m[7] + q * E6_C1m[6]), (weight[7] * weight[6] / (1 - weight[7])))))
E6_F_PCoB_m = a * numpy.prod(
    (E6_F_PCoB_m1, E6_F_PCoB_m2, E6_F_PCoB_m3, E6_F_PCoB_m4, E6_F_PCoB_m5, E6_F_PCoB_m6, E6_F_PCoB_m7, E6_F_PCoB_m8))
# </editor-fold>
# <editor-fold desc="E6_F_PCoB_u">
E6_F_PCoB_u1 = numpy.prod((math.pow((p * E6_C1u[0] + q * E6_C1u[1]), (weight[0] * weight[1] / (1 - weight[0]))),
                           math.pow((p * E6_C1u[0] + q * E6_C1u[2]), (weight[0] * weight[2] / (1 - weight[0]))),
                           math.pow((p * E6_C1u[0] + q * E6_C1u[3]), (weight[0] * weight[3] / (1 - weight[0]))),
                           math.pow((p * E6_C1u[0] + q * E6_C1u[4]), (weight[0] * weight[4] / (1 - weight[0]))),
                           math.pow((p * E6_C1u[0] + q * E6_C1u[5]), (weight[0] * weight[5] / (1 - weight[0]))),
                           math.pow((p * E6_C1u[0] + q * E6_C1u[6]), (weight[0] * weight[6] / (1 - weight[0]))),
                           math.pow((p * E6_C1u[0] + q * E6_C1u[7]), (weight[0] * weight[7] / (1 - weight[0])))))

E6_F_PCoB_u2 = numpy.prod((math.pow((p * E6_C1u[1] + q * E6_C1u[2]), (weight[1] * weight[2] / (1 - weight[1]))),
                           math.pow((p * E6_C1u[1] + q * E6_C1u[3]), (weight[1] * weight[3] / (1 - weight[1]))),
                           math.pow((p * E6_C1u[1] + q * E6_C1u[4]), (weight[1] * weight[4] / (1 - weight[1]))),
                           math.pow((p * E6_C1u[1] + q * E6_C1u[5]), (weight[1] * weight[5] / (1 - weight[1]))),
                           math.pow((p * E6_C1u[1] + q * E6_C1u[6]), (weight[1] * weight[6] / (1 - weight[1]))),
                           math.pow((p * E6_C1u[1] + q * E6_C1u[7]), (weight[1] * weight[7] / (1 - weight[1]))),
                           math.pow((p * E6_C1u[1] + q * E6_C1u[0]), (weight[1] * weight[0] / (1 - weight[1])))))

E6_F_PCoB_u3 = numpy.prod((math.pow((p * E6_C1u[2] + q * E6_C1u[3]), (weight[2] * weight[3] / (1 - weight[2]))),
                           math.pow((p * E6_C1u[2] + q * E6_C1u[4]), (weight[2] * weight[4] / (1 - weight[2]))),
                           math.pow((p * E6_C1u[2] + q * E6_C1u[5]), (weight[2] * weight[5] / (1 - weight[2]))),
                           math.pow((p * E6_C1u[2] + q * E6_C1u[6]), (weight[2] * weight[6] / (1 - weight[2]))),
                           math.pow((p * E6_C1u[2] + q * E6_C1u[7]), (weight[2] * weight[7] / (1 - weight[2]))),
                           math.pow((p * E6_C1u[2] + q * E6_C1u[0]), (weight[2] * weight[0] / (1 - weight[2]))),
                           math.pow((p * E6_C1u[2] + q * E6_C1u[1]), (weight[2] * weight[1] / (1 - weight[2])))))

E6_F_PCoB_u4 = numpy.prod((math.pow((p * E6_C1u[3] + q * E6_C1u[4]), (weight[3] * weight[4] / (1 - weight[3]))),
                           math.pow((p * E6_C1u[3] + q * E6_C1u[5]), (weight[3] * weight[5] / (1 - weight[3]))),
                           math.pow((p * E6_C1u[3] + q * E6_C1u[6]), (weight[3] * weight[6] / (1 - weight[3]))),
                           math.pow((p * E6_C1u[3] + q * E6_C1u[7]), (weight[3] * weight[7] / (1 - weight[3]))),
                           math.pow((p * E6_C1u[3] + q * E6_C1u[0]), (weight[3] * weight[0] / (1 - weight[3]))),
                           math.pow((p * E6_C1u[3] + q * E6_C1u[1]), (weight[3] * weight[1] / (1 - weight[3]))),
                           math.pow((p * E6_C1u[3] + q * E6_C1u[2]), (weight[3] * weight[2] / (1 - weight[3])))))

E6_F_PCoB_u5 = numpy.prod((math.pow((p * E6_C1u[4] + q * E6_C1u[5]), (weight[4] * weight[5] / (1 - weight[4]))),
                           math.pow((p * E6_C1u[4] + q * E6_C1u[6]), (weight[4] * weight[6] / (1 - weight[4]))),
                           math.pow((p * E6_C1u[4] + q * E6_C1u[7]), (weight[4] * weight[7] / (1 - weight[4]))),
                           math.pow((p * E6_C1u[4] + q * E6_C1u[0]), (weight[4] * weight[0] / (1 - weight[4]))),
                           math.pow((p * E6_C1u[4] + q * E6_C1u[1]), (weight[4] * weight[1] / (1 - weight[4]))),
                           math.pow((p * E6_C1u[4] + q * E6_C1u[2]), (weight[4] * weight[2] / (1 - weight[4]))),
                           math.pow((p * E6_C1u[4] + q * E6_C1u[3]), (weight[4] * weight[3] / (1 - weight[4])))))

E6_F_PCoB_u6 = numpy.prod((math.pow((p * E6_C1u[5] + q * E6_C1u[6]), (weight[5] * weight[6] / (1 - weight[5]))),
                           math.pow((p * E6_C1u[5] + q * E6_C1u[7]), (weight[5] * weight[7] / (1 - weight[5]))),
                           math.pow((p * E6_C1u[5] + q * E6_C1u[0]), (weight[5] * weight[0] / (1 - weight[5]))),
                           math.pow((p * E6_C1u[5] + q * E6_C1u[1]), (weight[5] * weight[1] / (1 - weight[5]))),
                           math.pow((p * E6_C1u[5] + q * E6_C1u[2]), (weight[5] * weight[2] / (1 - weight[5]))),
                           math.pow((p * E6_C1u[5] + q * E6_C1u[3]), (weight[5] * weight[3] / (1 - weight[5]))),
                           math.pow((p * E6_C1u[5] + q * E6_C1u[4]), (weight[5] * weight[4] / (1 - weight[5])))))

E6_F_PCoB_u7 = numpy.prod((math.pow((p * E6_C1u[6] + q * E6_C1u[7]), (weight[6] * weight[7] / (1 - weight[6]))),
                           math.pow((p * E6_C1u[6] + q * E6_C1u[0]), (weight[6] * weight[0] / (1 - weight[6]))),
                           math.pow((p * E6_C1u[6] + q * E6_C1u[1]), (weight[6] * weight[1] / (1 - weight[6]))),
                           math.pow((p * E6_C1u[6] + q * E6_C1u[2]), (weight[6] * weight[2] / (1 - weight[6]))),
                           math.pow((p * E6_C1u[6] + q * E6_C1u[3]), (weight[6] * weight[3] / (1 - weight[6]))),
                           math.pow((p * E6_C1u[6] + q * E6_C1u[4]), (weight[6] * weight[4] / (1 - weight[6]))),
                           math.pow((p * E6_C1u[6] + q * E6_C1u[5]), (weight[6] * weight[5] / (1 - weight[6])))))

E6_F_PCoB_u8 = numpy.prod((math.pow((p * E6_C1u[7] + q * E6_C1u[0]), (weight[7] * weight[0] / (1 - weight[7]))),
                           math.pow((p * E6_C1u[7] + q * E6_C1u[1]), (weight[7] * weight[1] / (1 - weight[7]))),
                           math.pow((p * E6_C1u[7] + q * E6_C1u[2]), (weight[7] * weight[2] / (1 - weight[7]))),
                           math.pow((p * E6_C1u[7] + q * E6_C1u[3]), (weight[7] * weight[3] / (1 - weight[7]))),
                           math.pow((p * E6_C1u[7] + q * E6_C1u[4]), (weight[7] * weight[4] / (1 - weight[7]))),
                           math.pow((p * E6_C1u[7] + q * E6_C1u[5]), (weight[7] * weight[5] / (1 - weight[7]))),
                           math.pow((p * E6_C1u[7] + q * E6_C1u[6]), (weight[7] * weight[6] / (1 - weight[7])))))
E6_F_PCoB_u = a * numpy.prod(
    (E6_F_PCoB_u1, E6_F_PCoB_u2, E6_F_PCoB_u3, E6_F_PCoB_u4, E6_F_PCoB_u5, E6_F_PCoB_u6, E6_F_PCoB_u7, E6_F_PCoB_u8))
# </editor-fold>
# print(E6_F_PCoB_l)
# print(E6_F_PCoB_m)
# print(E6_F_PCoB_u)
E6_PCoB = (E6_F_PCoB_l + 4 * E6_F_PCoB_m + E6_F_PCoB_u) / 6

# E7
# <editor-fold desc="E7_F_SCoB_l">
E7_F_SCoB_l1 = sum(
    ((((weight[0] * weight[1] / (1 - weight[0])) * math.pow(E7_C1l[0], p) * math.pow(E7_C1l[1], q)),
      ((weight[0] * weight[2] / (1 - weight[0])) * math.pow(E7_C1l[0], p) * math.pow(E7_C1l[2], q)),
      ((weight[0] * weight[3] / (1 - weight[0])) * math.pow(E7_C1l[0], p) * math.pow(E7_C1l[3], q)),
      ((weight[0] * weight[4] / (1 - weight[0])) * math.pow(E7_C1l[0], p) * math.pow(E7_C1l[4], q)),
      ((weight[0] * weight[5] / (1 - weight[0])) * math.pow(E7_C1l[0], p) * math.pow(E7_C1l[5], q)),
      ((weight[0] * weight[6] / (1 - weight[0])) * math.pow(E7_C1l[0], p) * math.pow(E7_C1l[6], q)),
      ((weight[0] * weight[7] / (1 - weight[0])) * math.pow(E7_C1l[0], p) * math.pow(E7_C1l[2], q)))))

E7_F_SCoB_l2 = sum(
    ((((weight[1] * weight[2] / (1 - weight[1])) * math.pow(E7_C1l[1], p) * math.pow(E7_C1l[2], q)),
      ((weight[1] * weight[3] / (1 - weight[1])) * math.pow(E7_C1l[1], p) * math.pow(E7_C1l[3], q)),
      ((weight[1] * weight[4] / (1 - weight[1])) * math.pow(E7_C1l[1], p) * math.pow(E7_C1l[4], q)),
      ((weight[1] * weight[5] / (1 - weight[1])) * math.pow(E7_C1l[1], p) * math.pow(E7_C1l[5], q)),
      ((weight[1] * weight[6] / (1 - weight[1])) * math.pow(E7_C1l[1], p) * math.pow(E7_C1l[6], q)),
      ((weight[1] * weight[7] / (1 - weight[1])) * math.pow(E7_C1l[1], p) * math.pow(E7_C1l[7], q)),
      ((weight[1] * weight[0] / (1 - weight[1])) * math.pow(E7_C1l[1], p) * math.pow(E7_C1l[0], q)))))

E7_F_SCoB_l3 = sum(
    ((((weight[2] * weight[3] / (1 - weight[2])) * math.pow(E7_C1l[2], p) * math.pow(E7_C1l[3], q)),
      ((weight[2] * weight[4] / (1 - weight[2])) * math.pow(E7_C1l[2], p) * math.pow(E7_C1l[4], q)),
      ((weight[2] * weight[5] / (1 - weight[2])) * math.pow(E7_C1l[2], p) * math.pow(E7_C1l[5], q)),
      ((weight[2] * weight[6] / (1 - weight[2])) * math.pow(E7_C1l[2], p) * math.pow(E7_C1l[6], q)),
      ((weight[2] * weight[7] / (1 - weight[2])) * math.pow(E7_C1l[2], p) * math.pow(E7_C1l[7], q)),
      ((weight[2] * weight[0] / (1 - weight[2])) * math.pow(E7_C1l[2], p) * math.pow(E7_C1l[0], q)),
      ((weight[2] * weight[1] / (1 - weight[2])) * math.pow(E7_C1l[2], p) * math.pow(E7_C1l[1], q)))))

E7_F_SCoB_l4 = sum(
    ((((weight[3] * weight[4] / (1 - weight[3])) * math.pow(E7_C1l[3], p) * math.pow(E7_C1l[4], q)),
      ((weight[3] * weight[5] / (1 - weight[3])) * math.pow(E7_C1l[3], p) * math.pow(E7_C1l[5], q)),
      ((weight[3] * weight[6] / (1 - weight[3])) * math.pow(E7_C1l[3], p) * math.pow(E7_C1l[6], q)),
      ((weight[3] * weight[7] / (1 - weight[3])) * math.pow(E7_C1l[3], p) * math.pow(E7_C1l[7], q)),
      ((weight[3] * weight[0] / (1 - weight[3])) * math.pow(E7_C1l[3], p) * math.pow(E7_C1l[0], q)),
      ((weight[3] * weight[1] / (1 - weight[3])) * math.pow(E7_C1l[3], p) * math.pow(E7_C1l[1], q)),
      ((weight[3] * weight[2] / (1 - weight[3])) * math.pow(E7_C1l[3], p) * math.pow(E7_C1l[2], q)))))

E7_F_SCoB_l5 = sum(
    ((((weight[4] * weight[5] / (1 - weight[4])) * math.pow(E7_C1l[4], p) * math.pow(E7_C1l[5], q)),
      ((weight[4] * weight[6] / (1 - weight[4])) * math.pow(E7_C1l[4], p) * math.pow(E7_C1l[6], q)),
      ((weight[4] * weight[7] / (1 - weight[4])) * math.pow(E7_C1l[4], p) * math.pow(E7_C1l[7], q)),
      ((weight[4] * weight[0] / (1 - weight[4])) * math.pow(E7_C1l[4], p) * math.pow(E7_C1l[0], q)),
      ((weight[4] * weight[1] / (1 - weight[4])) * math.pow(E7_C1l[4], p) * math.pow(E7_C1l[1], q)),
      ((weight[4] * weight[2] / (1 - weight[4])) * math.pow(E7_C1l[4], p) * math.pow(E7_C1l[2], q)),
      ((weight[4] * weight[3] / (1 - weight[4])) * math.pow(E7_C1l[4], p) * math.pow(E7_C1l[3], q)))))

E7_F_SCoB_l6 = sum(
    ((((weight[5] * weight[6] / (1 - weight[5])) * math.pow(E7_C1l[5], p) * math.pow(E7_C1l[6], q)),
      ((weight[5] * weight[7] / (1 - weight[5])) * math.pow(E7_C1l[5], p) * math.pow(E7_C1l[7], q)),
      ((weight[5] * weight[0] / (1 - weight[5])) * math.pow(E7_C1l[5], p) * math.pow(E7_C1l[0], q)),
      ((weight[5] * weight[1] / (1 - weight[5])) * math.pow(E7_C1l[5], p) * math.pow(E7_C1l[1], q)),
      ((weight[5] * weight[2] / (1 - weight[5])) * math.pow(E7_C1l[5], p) * math.pow(E7_C1l[2], q)),
      ((weight[5] * weight[3] / (1 - weight[5])) * math.pow(E7_C1l[5], p) * math.pow(E7_C1l[3], q)),
      ((weight[5] * weight[4] / (1 - weight[5])) * math.pow(E7_C1l[5], p) * math.pow(E7_C1l[4], q)))))

E7_F_SCoB_l7 = sum(
    ((((weight[6] * weight[7] / (1 - weight[6])) * math.pow(E7_C1l[6], p) * math.pow(E7_C1l[7], q)),
      ((weight[6] * weight[0] / (1 - weight[6])) * math.pow(E7_C1l[6], p) * math.pow(E7_C1l[0], q)),
      ((weight[6] * weight[1] / (1 - weight[6])) * math.pow(E7_C1l[6], p) * math.pow(E7_C1l[1], q)),
      ((weight[6] * weight[2] / (1 - weight[6])) * math.pow(E7_C1l[6], p) * math.pow(E7_C1l[2], q)),
      ((weight[6] * weight[3] / (1 - weight[6])) * math.pow(E7_C1l[6], p) * math.pow(E7_C1l[3], q)),
      ((weight[6] * weight[4] / (1 - weight[6])) * math.pow(E7_C1l[6], p) * math.pow(E7_C1l[4], q)),
      ((weight[6] * weight[5] / (1 - weight[6])) * math.pow(E7_C1l[6], p) * math.pow(E7_C1l[5], q)))))

E7_F_SCoB_l8 = sum(
    ((((weight[7] * weight[0] / (1 - weight[7])) * math.pow(E7_C1l[7], p) * math.pow(E7_C1l[0], q)),
      ((weight[7] * weight[1] / (1 - weight[7])) * math.pow(E7_C1l[7], p) * math.pow(E7_C1l[1], q)),
      ((weight[7] * weight[2] / (1 - weight[7])) * math.pow(E7_C1l[7], p) * math.pow(E7_C1l[2], q)),
      ((weight[7] * weight[3] / (1 - weight[7])) * math.pow(E7_C1l[7], p) * math.pow(E7_C1l[3], q)),
      ((weight[7] * weight[4] / (1 - weight[7])) * math.pow(E7_C1l[7], p) * math.pow(E7_C1l[4], q)),
      ((weight[7] * weight[5] / (1 - weight[7])) * math.pow(E7_C1l[7], p) * math.pow(E7_C1l[5], q)),
      ((weight[7] * weight[6] / (1 - weight[7])) * math.pow(E7_C1l[7], p) * math.pow(E7_C1l[6], q)))))
E7_F_SCoB_l = pow(sum(
    (E7_F_SCoB_l1, E7_F_SCoB_l2, E7_F_SCoB_l3, E7_F_SCoB_l4, E7_F_SCoB_l5, E7_F_SCoB_l6, E7_F_SCoB_l7, E7_F_SCoB_l8)),
    a)
# </editor-fold>
# <editor-fold desc="E7_F_SCoB_m">
E7_F_SCoB_m1 = sum(
    ((((weight[0] * weight[1] / (1 - weight[0])) * math.pow(E7_C1m[0], p) * math.pow(E7_C1m[1], q)),
      ((weight[0] * weight[2] / (1 - weight[0])) * math.pow(E7_C1m[0], p) * math.pow(E7_C1m[2], q)),
      ((weight[0] * weight[3] / (1 - weight[0])) * math.pow(E7_C1m[0], p) * math.pow(E7_C1m[3], q)),
      ((weight[0] * weight[4] / (1 - weight[0])) * math.pow(E7_C1m[0], p) * math.pow(E7_C1m[4], q)),
      ((weight[0] * weight[5] / (1 - weight[0])) * math.pow(E7_C1m[0], p) * math.pow(E7_C1m[5], q)),
      ((weight[0] * weight[6] / (1 - weight[0])) * math.pow(E7_C1m[0], p) * math.pow(E7_C1m[6], q)),
      ((weight[0] * weight[7] / (1 - weight[0])) * math.pow(E7_C1m[0], p) * math.pow(E7_C1m[2], q)))))

E7_F_SCoB_m2 = sum(
    ((((weight[1] * weight[2] / (1 - weight[1])) * math.pow(E7_C1m[1], p) * math.pow(E7_C1m[2], q)),
      ((weight[1] * weight[3] / (1 - weight[1])) * math.pow(E7_C1m[1], p) * math.pow(E7_C1m[3], q)),
      ((weight[1] * weight[4] / (1 - weight[1])) * math.pow(E7_C1m[1], p) * math.pow(E7_C1m[4], q)),
      ((weight[1] * weight[5] / (1 - weight[1])) * math.pow(E7_C1m[1], p) * math.pow(E7_C1m[5], q)),
      ((weight[1] * weight[6] / (1 - weight[1])) * math.pow(E7_C1m[1], p) * math.pow(E7_C1m[6], q)),
      ((weight[1] * weight[7] / (1 - weight[1])) * math.pow(E7_C1m[1], p) * math.pow(E7_C1m[7], q)),
      ((weight[1] * weight[0] / (1 - weight[1])) * math.pow(E7_C1m[1], p) * math.pow(E7_C1m[0], q)))))

E7_F_SCoB_m3 = sum(
    ((((weight[2] * weight[3] / (1 - weight[2])) * math.pow(E7_C1m[2], p) * math.pow(E7_C1m[3], q)),
      ((weight[2] * weight[4] / (1 - weight[2])) * math.pow(E7_C1m[2], p) * math.pow(E7_C1m[4], q)),
      ((weight[2] * weight[5] / (1 - weight[2])) * math.pow(E7_C1m[2], p) * math.pow(E7_C1m[5], q)),
      ((weight[2] * weight[6] / (1 - weight[2])) * math.pow(E7_C1m[2], p) * math.pow(E7_C1m[6], q)),
      ((weight[2] * weight[7] / (1 - weight[2])) * math.pow(E7_C1m[2], p) * math.pow(E7_C1m[7], q)),
      ((weight[2] * weight[0] / (1 - weight[2])) * math.pow(E7_C1m[2], p) * math.pow(E7_C1m[0], q)),
      ((weight[2] * weight[1] / (1 - weight[2])) * math.pow(E7_C1m[2], p) * math.pow(E7_C1m[1], q)))))

E7_F_SCoB_m4 = sum(
    ((((weight[3] * weight[4] / (1 - weight[3])) * math.pow(E7_C1m[3], p) * math.pow(E7_C1m[4], q)),
      ((weight[3] * weight[5] / (1 - weight[3])) * math.pow(E7_C1m[3], p) * math.pow(E7_C1m[5], q)),
      ((weight[3] * weight[6] / (1 - weight[3])) * math.pow(E7_C1m[3], p) * math.pow(E7_C1m[6], q)),
      ((weight[3] * weight[7] / (1 - weight[3])) * math.pow(E7_C1m[3], p) * math.pow(E7_C1m[7], q)),
      ((weight[3] * weight[0] / (1 - weight[3])) * math.pow(E7_C1m[3], p) * math.pow(E7_C1m[0], q)),
      ((weight[3] * weight[1] / (1 - weight[3])) * math.pow(E7_C1m[3], p) * math.pow(E7_C1m[1], q)),
      ((weight[3] * weight[2] / (1 - weight[3])) * math.pow(E7_C1m[3], p) * math.pow(E7_C1m[2], q)))))

E7_F_SCoB_m5 = sum(
    ((((weight[4] * weight[5] / (1 - weight[4])) * math.pow(E7_C1m[4], p) * math.pow(E7_C1m[5], q)),
      ((weight[4] * weight[6] / (1 - weight[4])) * math.pow(E7_C1m[4], p) * math.pow(E7_C1m[6], q)),
      ((weight[4] * weight[7] / (1 - weight[4])) * math.pow(E7_C1m[4], p) * math.pow(E7_C1m[7], q)),
      ((weight[4] * weight[0] / (1 - weight[4])) * math.pow(E7_C1m[4], p) * math.pow(E7_C1m[0], q)),
      ((weight[4] * weight[1] / (1 - weight[4])) * math.pow(E7_C1m[4], p) * math.pow(E7_C1m[1], q)),
      ((weight[4] * weight[2] / (1 - weight[4])) * math.pow(E7_C1m[4], p) * math.pow(E7_C1m[2], q)),
      ((weight[4] * weight[3] / (1 - weight[4])) * math.pow(E7_C1m[4], p) * math.pow(E7_C1m[3], q)))))

E7_F_SCoB_m6 = sum(
    ((((weight[5] * weight[6] / (1 - weight[5])) * math.pow(E7_C1m[5], p) * math.pow(E7_C1m[6], q)),
      ((weight[5] * weight[7] / (1 - weight[5])) * math.pow(E7_C1m[5], p) * math.pow(E7_C1m[7], q)),
      ((weight[5] * weight[0] / (1 - weight[5])) * math.pow(E7_C1m[5], p) * math.pow(E7_C1m[0], q)),
      ((weight[5] * weight[1] / (1 - weight[5])) * math.pow(E7_C1m[5], p) * math.pow(E7_C1m[1], q)),
      ((weight[5] * weight[2] / (1 - weight[5])) * math.pow(E7_C1m[5], p) * math.pow(E7_C1m[2], q)),
      ((weight[5] * weight[3] / (1 - weight[5])) * math.pow(E7_C1m[5], p) * math.pow(E7_C1m[3], q)),
      ((weight[5] * weight[4] / (1 - weight[5])) * math.pow(E7_C1m[5], p) * math.pow(E7_C1m[4], q)))))

E7_F_SCoB_m7 = sum(
    ((((weight[6] * weight[7] / (1 - weight[6])) * math.pow(E7_C1m[6], p) * math.pow(E7_C1m[7], q)),
      ((weight[6] * weight[0] / (1 - weight[6])) * math.pow(E7_C1m[6], p) * math.pow(E7_C1m[0], q)),
      ((weight[6] * weight[1] / (1 - weight[6])) * math.pow(E7_C1m[6], p) * math.pow(E7_C1m[1], q)),
      ((weight[6] * weight[2] / (1 - weight[6])) * math.pow(E7_C1m[6], p) * math.pow(E7_C1m[2], q)),
      ((weight[6] * weight[3] / (1 - weight[6])) * math.pow(E7_C1m[6], p) * math.pow(E7_C1m[3], q)),
      ((weight[6] * weight[4] / (1 - weight[6])) * math.pow(E7_C1m[6], p) * math.pow(E7_C1m[4], q)),
      ((weight[6] * weight[5] / (1 - weight[6])) * math.pow(E7_C1m[6], p) * math.pow(E7_C1m[5], q)))))

E7_F_SCoB_m8 = sum(
    ((((weight[7] * weight[0] / (1 - weight[7])) * math.pow(E7_C1m[7], p) * math.pow(E7_C1m[0], q)),
      ((weight[7] * weight[1] / (1 - weight[7])) * math.pow(E7_C1m[7], p) * math.pow(E7_C1m[1], q)),
      ((weight[7] * weight[2] / (1 - weight[7])) * math.pow(E7_C1m[7], p) * math.pow(E7_C1m[2], q)),
      ((weight[7] * weight[3] / (1 - weight[7])) * math.pow(E7_C1m[7], p) * math.pow(E7_C1m[3], q)),
      ((weight[7] * weight[4] / (1 - weight[7])) * math.pow(E7_C1m[7], p) * math.pow(E7_C1m[4], q)),
      ((weight[7] * weight[5] / (1 - weight[7])) * math.pow(E7_C1m[7], p) * math.pow(E7_C1m[5], q)),
      ((weight[7] * weight[6] / (1 - weight[7])) * math.pow(E7_C1m[7], p) * math.pow(E7_C1m[6], q)))))
E7_F_SCoB_m = pow(sum(
    (E7_F_SCoB_m1, E7_F_SCoB_m2, E7_F_SCoB_m3, E7_F_SCoB_m4, E7_F_SCoB_m5, E7_F_SCoB_m6, E7_F_SCoB_m7, E7_F_SCoB_m8)),
    a)
# </editor-fold>
# <editor-fold desc="E7_F_SCoB_u">
E7_F_SCoB_u1 = sum(
    ((((weight[0] * weight[1] / (1 - weight[0])) * math.pow(E7_C1u[0], p) * math.pow(E7_C1u[1], q)),
      ((weight[0] * weight[2] / (1 - weight[0])) * math.pow(E7_C1u[0], p) * math.pow(E7_C1u[2], q)),
      ((weight[0] * weight[3] / (1 - weight[0])) * math.pow(E7_C1u[0], p) * math.pow(E7_C1u[3], q)),
      ((weight[0] * weight[4] / (1 - weight[0])) * math.pow(E7_C1u[0], p) * math.pow(E7_C1u[4], q)),
      ((weight[0] * weight[5] / (1 - weight[0])) * math.pow(E7_C1u[0], p) * math.pow(E7_C1u[5], q)),
      ((weight[0] * weight[6] / (1 - weight[0])) * math.pow(E7_C1u[0], p) * math.pow(E7_C1u[6], q)),
      ((weight[0] * weight[7] / (1 - weight[0])) * math.pow(E7_C1u[0], p) * math.pow(E7_C1u[2], q)))))

E7_F_SCoB_u2 = sum(
    ((((weight[1] * weight[2] / (1 - weight[1])) * math.pow(E7_C1u[1], p) * math.pow(E7_C1u[2], q)),
      ((weight[1] * weight[3] / (1 - weight[1])) * math.pow(E7_C1u[1], p) * math.pow(E7_C1u[3], q)),
      ((weight[1] * weight[4] / (1 - weight[1])) * math.pow(E7_C1u[1], p) * math.pow(E7_C1u[4], q)),
      ((weight[1] * weight[5] / (1 - weight[1])) * math.pow(E7_C1u[1], p) * math.pow(E7_C1u[5], q)),
      ((weight[1] * weight[6] / (1 - weight[1])) * math.pow(E7_C1u[1], p) * math.pow(E7_C1u[6], q)),
      ((weight[1] * weight[7] / (1 - weight[1])) * math.pow(E7_C1u[1], p) * math.pow(E7_C1u[7], q)),
      ((weight[1] * weight[0] / (1 - weight[1])) * math.pow(E7_C1u[1], p) * math.pow(E7_C1u[0], q)))))

E7_F_SCoB_u3 = sum(
    ((((weight[2] * weight[3] / (1 - weight[2])) * math.pow(E7_C1u[2], p) * math.pow(E7_C1u[3], q)),
      ((weight[2] * weight[4] / (1 - weight[2])) * math.pow(E7_C1u[2], p) * math.pow(E7_C1u[4], q)),
      ((weight[2] * weight[5] / (1 - weight[2])) * math.pow(E7_C1u[2], p) * math.pow(E7_C1u[5], q)),
      ((weight[2] * weight[6] / (1 - weight[2])) * math.pow(E7_C1u[2], p) * math.pow(E7_C1u[6], q)),
      ((weight[2] * weight[7] / (1 - weight[2])) * math.pow(E7_C1u[2], p) * math.pow(E7_C1u[7], q)),
      ((weight[2] * weight[0] / (1 - weight[2])) * math.pow(E7_C1u[2], p) * math.pow(E7_C1u[0], q)),
      ((weight[2] * weight[1] / (1 - weight[2])) * math.pow(E7_C1u[2], p) * math.pow(E7_C1u[1], q)))))

E7_F_SCoB_u4 = sum(
    ((((weight[3] * weight[4] / (1 - weight[3])) * math.pow(E7_C1u[3], p) * math.pow(E7_C1u[4], q)),
      ((weight[3] * weight[5] / (1 - weight[3])) * math.pow(E7_C1u[3], p) * math.pow(E7_C1u[5], q)),
      ((weight[3] * weight[6] / (1 - weight[3])) * math.pow(E7_C1u[3], p) * math.pow(E7_C1u[6], q)),
      ((weight[3] * weight[7] / (1 - weight[3])) * math.pow(E7_C1u[3], p) * math.pow(E7_C1u[7], q)),
      ((weight[3] * weight[0] / (1 - weight[3])) * math.pow(E7_C1u[3], p) * math.pow(E7_C1u[0], q)),
      ((weight[3] * weight[1] / (1 - weight[3])) * math.pow(E7_C1u[3], p) * math.pow(E7_C1u[1], q)),
      ((weight[3] * weight[2] / (1 - weight[3])) * math.pow(E7_C1u[3], p) * math.pow(E7_C1u[2], q)))))

E7_F_SCoB_u5 = sum(
    ((((weight[4] * weight[5] / (1 - weight[4])) * math.pow(E7_C1u[4], p) * math.pow(E7_C1u[5], q)),
      ((weight[4] * weight[6] / (1 - weight[4])) * math.pow(E7_C1u[4], p) * math.pow(E7_C1u[6], q)),
      ((weight[4] * weight[7] / (1 - weight[4])) * math.pow(E7_C1u[4], p) * math.pow(E7_C1u[7], q)),
      ((weight[4] * weight[0] / (1 - weight[4])) * math.pow(E7_C1u[4], p) * math.pow(E7_C1u[0], q)),
      ((weight[4] * weight[1] / (1 - weight[4])) * math.pow(E7_C1u[4], p) * math.pow(E7_C1u[1], q)),
      ((weight[4] * weight[2] / (1 - weight[4])) * math.pow(E7_C1u[4], p) * math.pow(E7_C1u[2], q)),
      ((weight[4] * weight[3] / (1 - weight[4])) * math.pow(E7_C1u[4], p) * math.pow(E7_C1u[3], q)))))

E7_F_SCoB_u6 = sum(
    ((((weight[5] * weight[6] / (1 - weight[5])) * math.pow(E7_C1u[5], p) * math.pow(E7_C1u[6], q)),
      ((weight[5] * weight[7] / (1 - weight[5])) * math.pow(E7_C1u[5], p) * math.pow(E7_C1u[7], q)),
      ((weight[5] * weight[0] / (1 - weight[5])) * math.pow(E7_C1u[5], p) * math.pow(E7_C1u[0], q)),
      ((weight[5] * weight[1] / (1 - weight[5])) * math.pow(E7_C1u[5], p) * math.pow(E7_C1u[1], q)),
      ((weight[5] * weight[2] / (1 - weight[5])) * math.pow(E7_C1u[5], p) * math.pow(E7_C1u[2], q)),
      ((weight[5] * weight[3] / (1 - weight[5])) * math.pow(E7_C1u[5], p) * math.pow(E7_C1u[3], q)),
      ((weight[5] * weight[4] / (1 - weight[5])) * math.pow(E7_C1u[5], p) * math.pow(E7_C1u[4], q)))))

E7_F_SCoB_u7 = sum(
    ((((weight[6] * weight[7] / (1 - weight[6])) * math.pow(E7_C1u[6], p) * math.pow(E7_C1u[7], q)),
      ((weight[6] * weight[0] / (1 - weight[6])) * math.pow(E7_C1u[6], p) * math.pow(E7_C1u[0], q)),
      ((weight[6] * weight[1] / (1 - weight[6])) * math.pow(E7_C1u[6], p) * math.pow(E7_C1u[1], q)),
      ((weight[6] * weight[2] / (1 - weight[6])) * math.pow(E7_C1u[6], p) * math.pow(E7_C1u[2], q)),
      ((weight[6] * weight[3] / (1 - weight[6])) * math.pow(E7_C1u[6], p) * math.pow(E7_C1u[3], q)),
      ((weight[6] * weight[4] / (1 - weight[6])) * math.pow(E7_C1u[6], p) * math.pow(E7_C1u[4], q)),
      ((weight[6] * weight[5] / (1 - weight[6])) * math.pow(E7_C1u[6], p) * math.pow(E7_C1u[5], q)))))

E7_F_SCoB_u8 = sum(
    ((((weight[7] * weight[0] / (1 - weight[7])) * math.pow(E7_C1u[7], p) * math.pow(E7_C1u[0], q)),
      ((weight[7] * weight[1] / (1 - weight[7])) * math.pow(E7_C1u[7], p) * math.pow(E7_C1u[1], q)),
      ((weight[7] * weight[2] / (1 - weight[7])) * math.pow(E7_C1u[7], p) * math.pow(E7_C1u[2], q)),
      ((weight[7] * weight[3] / (1 - weight[7])) * math.pow(E7_C1u[7], p) * math.pow(E7_C1u[3], q)),
      ((weight[7] * weight[4] / (1 - weight[7])) * math.pow(E7_C1u[7], p) * math.pow(E7_C1u[4], q)),
      ((weight[7] * weight[5] / (1 - weight[7])) * math.pow(E7_C1u[7], p) * math.pow(E7_C1u[5], q)),
      ((weight[7] * weight[6] / (1 - weight[7])) * math.pow(E7_C1u[7], p) * math.pow(E7_C1u[6], q)))))
E7_F_SCoB_u = pow(sum(
    (E7_F_SCoB_u1, E7_F_SCoB_u2, E7_F_SCoB_u3, E7_F_SCoB_u4, E7_F_SCoB_u5, E7_F_SCoB_u6, E7_F_SCoB_u7, E7_F_SCoB_u8)),
    a)
# </editor-fold>
# print(E7_F_SCoB_l)
# print(E7_F_SCoB_m)
# print(E7_F_SCoB_u)
E7_SCoB = (E7_F_SCoB_l + 4 * E7_F_SCoB_m + E7_F_SCoB_u) / 6

# <editor-fold desc="E7_F_PCoB_l">
E7_F_PCoB_l1 = numpy.prod((math.pow((p * E7_C1l[0] + q * E7_C1l[1]), (weight[0] * weight[1] / (1 - weight[0]))),
                           math.pow((p * E7_C1l[0] + q * E7_C1l[2]), (weight[0] * weight[2] / (1 - weight[0]))),
                           math.pow((p * E7_C1l[0] + q * E7_C1l[3]), (weight[0] * weight[3] / (1 - weight[0]))),
                           math.pow((p * E7_C1l[0] + q * E7_C1l[4]), (weight[0] * weight[4] / (1 - weight[0]))),
                           math.pow((p * E7_C1l[0] + q * E7_C1l[5]), (weight[0] * weight[5] / (1 - weight[0]))),
                           math.pow((p * E7_C1l[0] + q * E7_C1l[6]), (weight[0] * weight[6] / (1 - weight[0]))),
                           math.pow((p * E7_C1l[0] + q * E7_C1l[7]), (weight[0] * weight[7] / (1 - weight[0])))))

E7_F_PCoB_l2 = numpy.prod((math.pow((p * E7_C1l[1] + q * E7_C1l[2]), (weight[1] * weight[2] / (1 - weight[1]))),
                           math.pow((p * E7_C1l[1] + q * E7_C1l[3]), (weight[1] * weight[3] / (1 - weight[1]))),
                           math.pow((p * E7_C1l[1] + q * E7_C1l[4]), (weight[1] * weight[4] / (1 - weight[1]))),
                           math.pow((p * E7_C1l[1] + q * E7_C1l[5]), (weight[1] * weight[5] / (1 - weight[1]))),
                           math.pow((p * E7_C1l[1] + q * E7_C1l[6]), (weight[1] * weight[6] / (1 - weight[1]))),
                           math.pow((p * E7_C1l[1] + q * E7_C1l[7]), (weight[1] * weight[7] / (1 - weight[1]))),
                           math.pow((p * E7_C1l[1] + q * E7_C1l[0]), (weight[1] * weight[0] / (1 - weight[1])))))

E7_F_PCoB_l3 = numpy.prod((math.pow((p * E7_C1l[2] + q * E7_C1l[3]), (weight[2] * weight[3] / (1 - weight[2]))),
                           math.pow((p * E7_C1l[2] + q * E7_C1l[4]), (weight[2] * weight[4] / (1 - weight[2]))),
                           math.pow((p * E7_C1l[2] + q * E7_C1l[5]), (weight[2] * weight[5] / (1 - weight[2]))),
                           math.pow((p * E7_C1l[2] + q * E7_C1l[6]), (weight[2] * weight[6] / (1 - weight[2]))),
                           math.pow((p * E7_C1l[2] + q * E7_C1l[7]), (weight[2] * weight[7] / (1 - weight[2]))),
                           math.pow((p * E7_C1l[2] + q * E7_C1l[0]), (weight[2] * weight[0] / (1 - weight[2]))),
                           math.pow((p * E7_C1l[2] + q * E7_C1l[1]), (weight[2] * weight[1] / (1 - weight[2])))))

E7_F_PCoB_l4 = numpy.prod((math.pow((p * E7_C1l[3] + q * E7_C1l[4]), (weight[3] * weight[4] / (1 - weight[3]))),
                           math.pow((p * E7_C1l[3] + q * E7_C1l[5]), (weight[3] * weight[5] / (1 - weight[3]))),
                           math.pow((p * E7_C1l[3] + q * E7_C1l[6]), (weight[3] * weight[6] / (1 - weight[3]))),
                           math.pow((p * E7_C1l[3] + q * E7_C1l[7]), (weight[3] * weight[7] / (1 - weight[3]))),
                           math.pow((p * E7_C1l[3] + q * E7_C1l[0]), (weight[3] * weight[0] / (1 - weight[3]))),
                           math.pow((p * E7_C1l[3] + q * E7_C1l[1]), (weight[3] * weight[1] / (1 - weight[3]))),
                           math.pow((p * E7_C1l[3] + q * E7_C1l[2]), (weight[3] * weight[2] / (1 - weight[3])))))

E7_F_PCoB_l5 = numpy.prod((math.pow((p * E7_C1l[4] + q * E7_C1l[5]), (weight[4] * weight[5] / (1 - weight[4]))),
                           math.pow((p * E7_C1l[4] + q * E7_C1l[6]), (weight[4] * weight[6] / (1 - weight[4]))),
                           math.pow((p * E7_C1l[4] + q * E7_C1l[7]), (weight[4] * weight[7] / (1 - weight[4]))),
                           math.pow((p * E7_C1l[4] + q * E7_C1l[0]), (weight[4] * weight[0] / (1 - weight[4]))),
                           math.pow((p * E7_C1l[4] + q * E7_C1l[1]), (weight[4] * weight[1] / (1 - weight[4]))),
                           math.pow((p * E7_C1l[4] + q * E7_C1l[2]), (weight[4] * weight[2] / (1 - weight[4]))),
                           math.pow((p * E7_C1l[4] + q * E7_C1l[3]), (weight[4] * weight[3] / (1 - weight[4])))))

E7_F_PCoB_l6 = numpy.prod((math.pow((p * E7_C1l[5] + q * E7_C1l[6]), (weight[5] * weight[6] / (1 - weight[5]))),
                           math.pow((p * E7_C1l[5] + q * E7_C1l[7]), (weight[5] * weight[7] / (1 - weight[5]))),
                           math.pow((p * E7_C1l[5] + q * E7_C1l[0]), (weight[5] * weight[0] / (1 - weight[5]))),
                           math.pow((p * E7_C1l[5] + q * E7_C1l[1]), (weight[5] * weight[1] / (1 - weight[5]))),
                           math.pow((p * E7_C1l[5] + q * E7_C1l[2]), (weight[5] * weight[2] / (1 - weight[5]))),
                           math.pow((p * E7_C1l[5] + q * E7_C1l[3]), (weight[5] * weight[3] / (1 - weight[5]))),
                           math.pow((p * E7_C1l[5] + q * E7_C1l[4]), (weight[5] * weight[4] / (1 - weight[5])))))

E7_F_PCoB_l7 = numpy.prod((math.pow((p * E7_C1l[6] + q * E7_C1l[7]), (weight[6] * weight[7] / (1 - weight[6]))),
                           math.pow((p * E7_C1l[6] + q * E7_C1l[0]), (weight[6] * weight[0] / (1 - weight[6]))),
                           math.pow((p * E7_C1l[6] + q * E7_C1l[1]), (weight[6] * weight[1] / (1 - weight[6]))),
                           math.pow((p * E7_C1l[6] + q * E7_C1l[2]), (weight[6] * weight[2] / (1 - weight[6]))),
                           math.pow((p * E7_C1l[6] + q * E7_C1l[3]), (weight[6] * weight[3] / (1 - weight[6]))),
                           math.pow((p * E7_C1l[6] + q * E7_C1l[4]), (weight[6] * weight[4] / (1 - weight[6]))),
                           math.pow((p * E7_C1l[6] + q * E7_C1l[5]), (weight[6] * weight[5] / (1 - weight[6])))))

E7_F_PCoB_l8 = numpy.prod((math.pow((p * E7_C1l[7] + q * E7_C1l[0]), (weight[7] * weight[0] / (1 - weight[7]))),
                           math.pow((p * E7_C1l[7] + q * E7_C1l[1]), (weight[7] * weight[1] / (1 - weight[7]))),
                           math.pow((p * E7_C1l[7] + q * E7_C1l[2]), (weight[7] * weight[2] / (1 - weight[7]))),
                           math.pow((p * E7_C1l[7] + q * E7_C1l[3]), (weight[7] * weight[3] / (1 - weight[7]))),
                           math.pow((p * E7_C1l[7] + q * E7_C1l[4]), (weight[7] * weight[4] / (1 - weight[7]))),
                           math.pow((p * E7_C1l[7] + q * E7_C1l[5]), (weight[7] * weight[5] / (1 - weight[7]))),
                           math.pow((p * E7_C1l[7] + q * E7_C1l[6]), (weight[7] * weight[6] / (1 - weight[7])))))
E7_F_PCoB_l = a * numpy.prod(
    (E7_F_PCoB_l1, E7_F_PCoB_l2, E7_F_PCoB_l3, E7_F_PCoB_l4, E7_F_PCoB_l5, E7_F_PCoB_l6, E7_F_PCoB_l7, E7_F_PCoB_l8))
# </editor-fold>
# <editor-fold desc="E7_F_PCoB_m">
E7_F_PCoB_m1 = numpy.prod((math.pow((p * E7_C1m[0] + q * E7_C1m[1]), (weight[0] * weight[1] / (1 - weight[0]))),
                           math.pow((p * E7_C1m[0] + q * E7_C1m[2]), (weight[0] * weight[2] / (1 - weight[0]))),
                           math.pow((p * E7_C1m[0] + q * E7_C1m[3]), (weight[0] * weight[3] / (1 - weight[0]))),
                           math.pow((p * E7_C1m[0] + q * E7_C1m[4]), (weight[0] * weight[4] / (1 - weight[0]))),
                           math.pow((p * E7_C1m[0] + q * E7_C1m[5]), (weight[0] * weight[5] / (1 - weight[0]))),
                           math.pow((p * E7_C1m[0] + q * E7_C1m[6]), (weight[0] * weight[6] / (1 - weight[0]))),
                           math.pow((p * E7_C1m[0] + q * E7_C1m[7]), (weight[0] * weight[7] / (1 - weight[0])))))

E7_F_PCoB_m2 = numpy.prod((math.pow((p * E7_C1m[1] + q * E7_C1m[2]), (weight[1] * weight[2] / (1 - weight[1]))),
                           math.pow((p * E7_C1m[1] + q * E7_C1m[3]), (weight[1] * weight[3] / (1 - weight[1]))),
                           math.pow((p * E7_C1m[1] + q * E7_C1m[4]), (weight[1] * weight[4] / (1 - weight[1]))),
                           math.pow((p * E7_C1m[1] + q * E7_C1m[5]), (weight[1] * weight[5] / (1 - weight[1]))),
                           math.pow((p * E7_C1m[1] + q * E7_C1m[6]), (weight[1] * weight[6] / (1 - weight[1]))),
                           math.pow((p * E7_C1m[1] + q * E7_C1m[7]), (weight[1] * weight[7] / (1 - weight[1]))),
                           math.pow((p * E7_C1m[1] + q * E7_C1m[0]), (weight[1] * weight[0] / (1 - weight[1])))))

E7_F_PCoB_m3 = numpy.prod((math.pow((p * E7_C1m[2] + q * E7_C1m[3]), (weight[2] * weight[3] / (1 - weight[2]))),
                           math.pow((p * E7_C1m[2] + q * E7_C1m[4]), (weight[2] * weight[4] / (1 - weight[2]))),
                           math.pow((p * E7_C1m[2] + q * E7_C1m[5]), (weight[2] * weight[5] / (1 - weight[2]))),
                           math.pow((p * E7_C1m[2] + q * E7_C1m[6]), (weight[2] * weight[6] / (1 - weight[2]))),
                           math.pow((p * E7_C1m[2] + q * E7_C1m[7]), (weight[2] * weight[7] / (1 - weight[2]))),
                           math.pow((p * E7_C1m[2] + q * E7_C1m[0]), (weight[2] * weight[0] / (1 - weight[2]))),
                           math.pow((p * E7_C1m[2] + q * E7_C1m[1]), (weight[2] * weight[1] / (1 - weight[2])))))

E7_F_PCoB_m4 = numpy.prod((math.pow((p * E7_C1m[3] + q * E7_C1m[4]), (weight[3] * weight[4] / (1 - weight[3]))),
                           math.pow((p * E7_C1m[3] + q * E7_C1m[5]), (weight[3] * weight[5] / (1 - weight[3]))),
                           math.pow((p * E7_C1m[3] + q * E7_C1m[6]), (weight[3] * weight[6] / (1 - weight[3]))),
                           math.pow((p * E7_C1m[3] + q * E7_C1m[7]), (weight[3] * weight[7] / (1 - weight[3]))),
                           math.pow((p * E7_C1m[3] + q * E7_C1m[0]), (weight[3] * weight[0] / (1 - weight[3]))),
                           math.pow((p * E7_C1m[3] + q * E7_C1m[1]), (weight[3] * weight[1] / (1 - weight[3]))),
                           math.pow((p * E7_C1m[3] + q * E7_C1m[2]), (weight[3] * weight[2] / (1 - weight[3])))))

E7_F_PCoB_m5 = numpy.prod((math.pow((p * E7_C1m[4] + q * E7_C1m[5]), (weight[4] * weight[5] / (1 - weight[4]))),
                           math.pow((p * E7_C1m[4] + q * E7_C1m[6]), (weight[4] * weight[6] / (1 - weight[4]))),
                           math.pow((p * E7_C1m[4] + q * E7_C1m[7]), (weight[4] * weight[7] / (1 - weight[4]))),
                           math.pow((p * E7_C1m[4] + q * E7_C1m[0]), (weight[4] * weight[0] / (1 - weight[4]))),
                           math.pow((p * E7_C1m[4] + q * E7_C1m[1]), (weight[4] * weight[1] / (1 - weight[4]))),
                           math.pow((p * E7_C1m[4] + q * E7_C1m[2]), (weight[4] * weight[2] / (1 - weight[4]))),
                           math.pow((p * E7_C1m[4] + q * E7_C1m[3]), (weight[4] * weight[3] / (1 - weight[4])))))

E7_F_PCoB_m6 = numpy.prod((math.pow((p * E7_C1m[5] + q * E7_C1m[6]), (weight[5] * weight[6] / (1 - weight[5]))),
                           math.pow((p * E7_C1m[5] + q * E7_C1m[7]), (weight[5] * weight[7] / (1 - weight[5]))),
                           math.pow((p * E7_C1m[5] + q * E7_C1m[0]), (weight[5] * weight[0] / (1 - weight[5]))),
                           math.pow((p * E7_C1m[5] + q * E7_C1m[1]), (weight[5] * weight[1] / (1 - weight[5]))),
                           math.pow((p * E7_C1m[5] + q * E7_C1m[2]), (weight[5] * weight[2] / (1 - weight[5]))),
                           math.pow((p * E7_C1m[5] + q * E7_C1m[3]), (weight[5] * weight[3] / (1 - weight[5]))),
                           math.pow((p * E7_C1m[5] + q * E7_C1m[4]), (weight[5] * weight[4] / (1 - weight[5])))))

E7_F_PCoB_m7 = numpy.prod((math.pow((p * E7_C1m[6] + q * E7_C1m[7]), (weight[6] * weight[7] / (1 - weight[6]))),
                           math.pow((p * E7_C1m[6] + q * E7_C1m[0]), (weight[6] * weight[0] / (1 - weight[6]))),
                           math.pow((p * E7_C1m[6] + q * E7_C1m[1]), (weight[6] * weight[1] / (1 - weight[6]))),
                           math.pow((p * E7_C1m[6] + q * E7_C1m[2]), (weight[6] * weight[2] / (1 - weight[6]))),
                           math.pow((p * E7_C1m[6] + q * E7_C1m[3]), (weight[6] * weight[3] / (1 - weight[6]))),
                           math.pow((p * E7_C1m[6] + q * E7_C1m[4]), (weight[6] * weight[4] / (1 - weight[6]))),
                           math.pow((p * E7_C1m[6] + q * E7_C1m[5]), (weight[6] * weight[5] / (1 - weight[6])))))

E7_F_PCoB_m8 = numpy.prod((math.pow((p * E7_C1m[7] + q * E7_C1m[0]), (weight[7] * weight[0] / (1 - weight[7]))),
                           math.pow((p * E7_C1m[7] + q * E7_C1m[1]), (weight[7] * weight[1] / (1 - weight[7]))),
                           math.pow((p * E7_C1m[7] + q * E7_C1m[2]), (weight[7] * weight[2] / (1 - weight[7]))),
                           math.pow((p * E7_C1m[7] + q * E7_C1m[3]), (weight[7] * weight[3] / (1 - weight[7]))),
                           math.pow((p * E7_C1m[7] + q * E7_C1m[4]), (weight[7] * weight[4] / (1 - weight[7]))),
                           math.pow((p * E7_C1m[7] + q * E7_C1m[5]), (weight[7] * weight[5] / (1 - weight[7]))),
                           math.pow((p * E7_C1m[7] + q * E7_C1m[6]), (weight[7] * weight[6] / (1 - weight[7])))))
E7_F_PCoB_m = a * numpy.prod(
    (E7_F_PCoB_m1, E7_F_PCoB_m2, E7_F_PCoB_m3, E7_F_PCoB_m4, E7_F_PCoB_m5, E7_F_PCoB_m6, E7_F_PCoB_m7, E7_F_PCoB_m8))
# </editor-fold>
# <editor-fold desc="E7_F_PCoB_u">
E7_F_PCoB_u1 = numpy.prod((math.pow((p * E7_C1u[0] + q * E7_C1u[1]), (weight[0] * weight[1] / (1 - weight[0]))),
                           math.pow((p * E7_C1u[0] + q * E7_C1u[2]), (weight[0] * weight[2] / (1 - weight[0]))),
                           math.pow((p * E7_C1u[0] + q * E7_C1u[3]), (weight[0] * weight[3] / (1 - weight[0]))),
                           math.pow((p * E7_C1u[0] + q * E7_C1u[4]), (weight[0] * weight[4] / (1 - weight[0]))),
                           math.pow((p * E7_C1u[0] + q * E7_C1u[5]), (weight[0] * weight[5] / (1 - weight[0]))),
                           math.pow((p * E7_C1u[0] + q * E7_C1u[6]), (weight[0] * weight[6] / (1 - weight[0]))),
                           math.pow((p * E7_C1u[0] + q * E7_C1u[7]), (weight[0] * weight[7] / (1 - weight[0])))))

E7_F_PCoB_u2 = numpy.prod((math.pow((p * E7_C1u[1] + q * E7_C1u[2]), (weight[1] * weight[2] / (1 - weight[1]))),
                           math.pow((p * E7_C1u[1] + q * E7_C1u[3]), (weight[1] * weight[3] / (1 - weight[1]))),
                           math.pow((p * E7_C1u[1] + q * E7_C1u[4]), (weight[1] * weight[4] / (1 - weight[1]))),
                           math.pow((p * E7_C1u[1] + q * E7_C1u[5]), (weight[1] * weight[5] / (1 - weight[1]))),
                           math.pow((p * E7_C1u[1] + q * E7_C1u[6]), (weight[1] * weight[6] / (1 - weight[1]))),
                           math.pow((p * E7_C1u[1] + q * E7_C1u[7]), (weight[1] * weight[7] / (1 - weight[1]))),
                           math.pow((p * E7_C1u[1] + q * E7_C1u[0]), (weight[1] * weight[0] / (1 - weight[1])))))

E7_F_PCoB_u3 = numpy.prod((math.pow((p * E7_C1u[2] + q * E7_C1u[3]), (weight[2] * weight[3] / (1 - weight[2]))),
                           math.pow((p * E7_C1u[2] + q * E7_C1u[4]), (weight[2] * weight[4] / (1 - weight[2]))),
                           math.pow((p * E7_C1u[2] + q * E7_C1u[5]), (weight[2] * weight[5] / (1 - weight[2]))),
                           math.pow((p * E7_C1u[2] + q * E7_C1u[6]), (weight[2] * weight[6] / (1 - weight[2]))),
                           math.pow((p * E7_C1u[2] + q * E7_C1u[7]), (weight[2] * weight[7] / (1 - weight[2]))),
                           math.pow((p * E7_C1u[2] + q * E7_C1u[0]), (weight[2] * weight[0] / (1 - weight[2]))),
                           math.pow((p * E7_C1u[2] + q * E7_C1u[1]), (weight[2] * weight[1] / (1 - weight[2])))))

E7_F_PCoB_u4 = numpy.prod((math.pow((p * E7_C1u[3] + q * E7_C1u[4]), (weight[3] * weight[4] / (1 - weight[3]))),
                           math.pow((p * E7_C1u[3] + q * E7_C1u[5]), (weight[3] * weight[5] / (1 - weight[3]))),
                           math.pow((p * E7_C1u[3] + q * E7_C1u[6]), (weight[3] * weight[6] / (1 - weight[3]))),
                           math.pow((p * E7_C1u[3] + q * E7_C1u[7]), (weight[3] * weight[7] / (1 - weight[3]))),
                           math.pow((p * E7_C1u[3] + q * E7_C1u[0]), (weight[3] * weight[0] / (1 - weight[3]))),
                           math.pow((p * E7_C1u[3] + q * E7_C1u[1]), (weight[3] * weight[1] / (1 - weight[3]))),
                           math.pow((p * E7_C1u[3] + q * E7_C1u[2]), (weight[3] * weight[2] / (1 - weight[3])))))

E7_F_PCoB_u5 = numpy.prod((math.pow((p * E7_C1u[4] + q * E7_C1u[5]), (weight[4] * weight[5] / (1 - weight[4]))),
                           math.pow((p * E7_C1u[4] + q * E7_C1u[6]), (weight[4] * weight[6] / (1 - weight[4]))),
                           math.pow((p * E7_C1u[4] + q * E7_C1u[7]), (weight[4] * weight[7] / (1 - weight[4]))),
                           math.pow((p * E7_C1u[4] + q * E7_C1u[0]), (weight[4] * weight[0] / (1 - weight[4]))),
                           math.pow((p * E7_C1u[4] + q * E7_C1u[1]), (weight[4] * weight[1] / (1 - weight[4]))),
                           math.pow((p * E7_C1u[4] + q * E7_C1u[2]), (weight[4] * weight[2] / (1 - weight[4]))),
                           math.pow((p * E7_C1u[4] + q * E7_C1u[3]), (weight[4] * weight[3] / (1 - weight[4])))))

E7_F_PCoB_u6 = numpy.prod((math.pow((p * E7_C1u[5] + q * E7_C1u[6]), (weight[5] * weight[6] / (1 - weight[5]))),
                           math.pow((p * E7_C1u[5] + q * E7_C1u[7]), (weight[5] * weight[7] / (1 - weight[5]))),
                           math.pow((p * E7_C1u[5] + q * E7_C1u[0]), (weight[5] * weight[0] / (1 - weight[5]))),
                           math.pow((p * E7_C1u[5] + q * E7_C1u[1]), (weight[5] * weight[1] / (1 - weight[5]))),
                           math.pow((p * E7_C1u[5] + q * E7_C1u[2]), (weight[5] * weight[2] / (1 - weight[5]))),
                           math.pow((p * E7_C1u[5] + q * E7_C1u[3]), (weight[5] * weight[3] / (1 - weight[5]))),
                           math.pow((p * E7_C1u[5] + q * E7_C1u[4]), (weight[5] * weight[4] / (1 - weight[5])))))

E7_F_PCoB_u7 = numpy.prod((math.pow((p * E7_C1u[6] + q * E7_C1u[7]), (weight[6] * weight[7] / (1 - weight[6]))),
                           math.pow((p * E7_C1u[6] + q * E7_C1u[0]), (weight[6] * weight[0] / (1 - weight[6]))),
                           math.pow((p * E7_C1u[6] + q * E7_C1u[1]), (weight[6] * weight[1] / (1 - weight[6]))),
                           math.pow((p * E7_C1u[6] + q * E7_C1u[2]), (weight[6] * weight[2] / (1 - weight[6]))),
                           math.pow((p * E7_C1u[6] + q * E7_C1u[3]), (weight[6] * weight[3] / (1 - weight[6]))),
                           math.pow((p * E7_C1u[6] + q * E7_C1u[4]), (weight[6] * weight[4] / (1 - weight[6]))),
                           math.pow((p * E7_C1u[6] + q * E7_C1u[5]), (weight[6] * weight[5] / (1 - weight[6])))))

E7_F_PCoB_u8 = numpy.prod((math.pow((p * E7_C1u[7] + q * E7_C1u[0]), (weight[7] * weight[0] / (1 - weight[7]))),
                           math.pow((p * E7_C1u[7] + q * E7_C1u[1]), (weight[7] * weight[1] / (1 - weight[7]))),
                           math.pow((p * E7_C1u[7] + q * E7_C1u[2]), (weight[7] * weight[2] / (1 - weight[7]))),
                           math.pow((p * E7_C1u[7] + q * E7_C1u[3]), (weight[7] * weight[3] / (1 - weight[7]))),
                           math.pow((p * E7_C1u[7] + q * E7_C1u[4]), (weight[7] * weight[4] / (1 - weight[7]))),
                           math.pow((p * E7_C1u[7] + q * E7_C1u[5]), (weight[7] * weight[5] / (1 - weight[7]))),
                           math.pow((p * E7_C1u[7] + q * E7_C1u[6]), (weight[7] * weight[6] / (1 - weight[7])))))
E7_F_PCoB_u = a * numpy.prod(
    (E7_F_PCoB_u1, E7_F_PCoB_u2, E7_F_PCoB_u3, E7_F_PCoB_u4, E7_F_PCoB_u5, E7_F_PCoB_u6, E7_F_PCoB_u7, E7_F_PCoB_u8))
# </editor-fold>
# print(E7_F_PCoB_l)
# print(E7_F_PCoB_m)
# print(E7_F_PCoB_u)
E7_PCoB = (E7_F_PCoB_l + 4 * E7_F_PCoB_m + E7_F_PCoB_u) / 6

# E8
# <editor-fold desc="E8_F_SCoB_l">
E8_F_SCoB_l1 = sum(
    ((((weight[0] * weight[1] / (1 - weight[0])) * math.pow(E8_C1l[0], p) * math.pow(E8_C1l[1], q)),
      ((weight[0] * weight[2] / (1 - weight[0])) * math.pow(E8_C1l[0], p) * math.pow(E8_C1l[2], q)),
      ((weight[0] * weight[3] / (1 - weight[0])) * math.pow(E8_C1l[0], p) * math.pow(E8_C1l[3], q)),
      ((weight[0] * weight[4] / (1 - weight[0])) * math.pow(E8_C1l[0], p) * math.pow(E8_C1l[4], q)),
      ((weight[0] * weight[5] / (1 - weight[0])) * math.pow(E8_C1l[0], p) * math.pow(E8_C1l[5], q)),
      ((weight[0] * weight[6] / (1 - weight[0])) * math.pow(E8_C1l[0], p) * math.pow(E8_C1l[6], q)),
      ((weight[0] * weight[7] / (1 - weight[0])) * math.pow(E8_C1l[0], p) * math.pow(E8_C1l[2], q)))))

E8_F_SCoB_l2 = sum(
    ((((weight[1] * weight[2] / (1 - weight[1])) * math.pow(E8_C1l[1], p) * math.pow(E8_C1l[2], q)),
      ((weight[1] * weight[3] / (1 - weight[1])) * math.pow(E8_C1l[1], p) * math.pow(E8_C1l[3], q)),
      ((weight[1] * weight[4] / (1 - weight[1])) * math.pow(E8_C1l[1], p) * math.pow(E8_C1l[4], q)),
      ((weight[1] * weight[5] / (1 - weight[1])) * math.pow(E8_C1l[1], p) * math.pow(E8_C1l[5], q)),
      ((weight[1] * weight[6] / (1 - weight[1])) * math.pow(E8_C1l[1], p) * math.pow(E8_C1l[6], q)),
      ((weight[1] * weight[7] / (1 - weight[1])) * math.pow(E8_C1l[1], p) * math.pow(E8_C1l[7], q)),
      ((weight[1] * weight[0] / (1 - weight[1])) * math.pow(E8_C1l[1], p) * math.pow(E8_C1l[0], q)))))

E8_F_SCoB_l3 = sum(
    ((((weight[2] * weight[3] / (1 - weight[2])) * math.pow(E8_C1l[2], p) * math.pow(E8_C1l[3], q)),
      ((weight[2] * weight[4] / (1 - weight[2])) * math.pow(E8_C1l[2], p) * math.pow(E8_C1l[4], q)),
      ((weight[2] * weight[5] / (1 - weight[2])) * math.pow(E8_C1l[2], p) * math.pow(E8_C1l[5], q)),
      ((weight[2] * weight[6] / (1 - weight[2])) * math.pow(E8_C1l[2], p) * math.pow(E8_C1l[6], q)),
      ((weight[2] * weight[7] / (1 - weight[2])) * math.pow(E8_C1l[2], p) * math.pow(E8_C1l[7], q)),
      ((weight[2] * weight[0] / (1 - weight[2])) * math.pow(E8_C1l[2], p) * math.pow(E8_C1l[0], q)),
      ((weight[2] * weight[1] / (1 - weight[2])) * math.pow(E8_C1l[2], p) * math.pow(E8_C1l[1], q)))))

E8_F_SCoB_l4 = sum(
    ((((weight[3] * weight[4] / (1 - weight[3])) * math.pow(E8_C1l[3], p) * math.pow(E8_C1l[4], q)),
      ((weight[3] * weight[5] / (1 - weight[3])) * math.pow(E8_C1l[3], p) * math.pow(E8_C1l[5], q)),
      ((weight[3] * weight[6] / (1 - weight[3])) * math.pow(E8_C1l[3], p) * math.pow(E8_C1l[6], q)),
      ((weight[3] * weight[7] / (1 - weight[3])) * math.pow(E8_C1l[3], p) * math.pow(E8_C1l[7], q)),
      ((weight[3] * weight[0] / (1 - weight[3])) * math.pow(E8_C1l[3], p) * math.pow(E8_C1l[0], q)),
      ((weight[3] * weight[1] / (1 - weight[3])) * math.pow(E8_C1l[3], p) * math.pow(E8_C1l[1], q)),
      ((weight[3] * weight[2] / (1 - weight[3])) * math.pow(E8_C1l[3], p) * math.pow(E8_C1l[2], q)))))

E8_F_SCoB_l5 = sum(
    ((((weight[4] * weight[5] / (1 - weight[4])) * math.pow(E8_C1l[4], p) * math.pow(E8_C1l[5], q)),
      ((weight[4] * weight[6] / (1 - weight[4])) * math.pow(E8_C1l[4], p) * math.pow(E8_C1l[6], q)),
      ((weight[4] * weight[7] / (1 - weight[4])) * math.pow(E8_C1l[4], p) * math.pow(E8_C1l[7], q)),
      ((weight[4] * weight[0] / (1 - weight[4])) * math.pow(E8_C1l[4], p) * math.pow(E8_C1l[0], q)),
      ((weight[4] * weight[1] / (1 - weight[4])) * math.pow(E8_C1l[4], p) * math.pow(E8_C1l[1], q)),
      ((weight[4] * weight[2] / (1 - weight[4])) * math.pow(E8_C1l[4], p) * math.pow(E8_C1l[2], q)),
      ((weight[4] * weight[3] / (1 - weight[4])) * math.pow(E8_C1l[4], p) * math.pow(E8_C1l[3], q)))))

E8_F_SCoB_l6 = sum(
    ((((weight[5] * weight[6] / (1 - weight[5])) * math.pow(E8_C1l[5], p) * math.pow(E8_C1l[6], q)),
      ((weight[5] * weight[7] / (1 - weight[5])) * math.pow(E8_C1l[5], p) * math.pow(E8_C1l[7], q)),
      ((weight[5] * weight[0] / (1 - weight[5])) * math.pow(E8_C1l[5], p) * math.pow(E8_C1l[0], q)),
      ((weight[5] * weight[1] / (1 - weight[5])) * math.pow(E8_C1l[5], p) * math.pow(E8_C1l[1], q)),
      ((weight[5] * weight[2] / (1 - weight[5])) * math.pow(E8_C1l[5], p) * math.pow(E8_C1l[2], q)),
      ((weight[5] * weight[3] / (1 - weight[5])) * math.pow(E8_C1l[5], p) * math.pow(E8_C1l[3], q)),
      ((weight[5] * weight[4] / (1 - weight[5])) * math.pow(E8_C1l[5], p) * math.pow(E8_C1l[4], q)))))

E8_F_SCoB_l7 = sum(
    ((((weight[6] * weight[7] / (1 - weight[6])) * math.pow(E8_C1l[6], p) * math.pow(E8_C1l[7], q)),
      ((weight[6] * weight[0] / (1 - weight[6])) * math.pow(E8_C1l[6], p) * math.pow(E8_C1l[0], q)),
      ((weight[6] * weight[1] / (1 - weight[6])) * math.pow(E8_C1l[6], p) * math.pow(E8_C1l[1], q)),
      ((weight[6] * weight[2] / (1 - weight[6])) * math.pow(E8_C1l[6], p) * math.pow(E8_C1l[2], q)),
      ((weight[6] * weight[3] / (1 - weight[6])) * math.pow(E8_C1l[6], p) * math.pow(E8_C1l[3], q)),
      ((weight[6] * weight[4] / (1 - weight[6])) * math.pow(E8_C1l[6], p) * math.pow(E8_C1l[4], q)),
      ((weight[6] * weight[5] / (1 - weight[6])) * math.pow(E8_C1l[6], p) * math.pow(E8_C1l[5], q)))))

E8_F_SCoB_l8 = sum(
    ((((weight[7] * weight[0] / (1 - weight[7])) * math.pow(E8_C1l[7], p) * math.pow(E8_C1l[0], q)),
      ((weight[7] * weight[1] / (1 - weight[7])) * math.pow(E8_C1l[7], p) * math.pow(E8_C1l[1], q)),
      ((weight[7] * weight[2] / (1 - weight[7])) * math.pow(E8_C1l[7], p) * math.pow(E8_C1l[2], q)),
      ((weight[7] * weight[3] / (1 - weight[7])) * math.pow(E8_C1l[7], p) * math.pow(E8_C1l[3], q)),
      ((weight[7] * weight[4] / (1 - weight[7])) * math.pow(E8_C1l[7], p) * math.pow(E8_C1l[4], q)),
      ((weight[7] * weight[5] / (1 - weight[7])) * math.pow(E8_C1l[7], p) * math.pow(E8_C1l[5], q)),
      ((weight[7] * weight[6] / (1 - weight[7])) * math.pow(E8_C1l[7], p) * math.pow(E8_C1l[6], q)))))
E8_F_SCoB_l = pow(sum(
    (E8_F_SCoB_l1, E8_F_SCoB_l2, E8_F_SCoB_l3, E8_F_SCoB_l4, E8_F_SCoB_l5, E8_F_SCoB_l6, E8_F_SCoB_l7, E8_F_SCoB_l8)),
    a)
# </editor-fold>
# <editor-fold desc="E8_F_SCoB_m">
E8_F_SCoB_m1 = sum(
    ((((weight[0] * weight[1] / (1 - weight[0])) * math.pow(E8_C1m[0], p) * math.pow(E8_C1m[1], q)),
      ((weight[0] * weight[2] / (1 - weight[0])) * math.pow(E8_C1m[0], p) * math.pow(E8_C1m[2], q)),
      ((weight[0] * weight[3] / (1 - weight[0])) * math.pow(E8_C1m[0], p) * math.pow(E8_C1m[3], q)),
      ((weight[0] * weight[4] / (1 - weight[0])) * math.pow(E8_C1m[0], p) * math.pow(E8_C1m[4], q)),
      ((weight[0] * weight[5] / (1 - weight[0])) * math.pow(E8_C1m[0], p) * math.pow(E8_C1m[5], q)),
      ((weight[0] * weight[6] / (1 - weight[0])) * math.pow(E8_C1m[0], p) * math.pow(E8_C1m[6], q)),
      ((weight[0] * weight[7] / (1 - weight[0])) * math.pow(E8_C1m[0], p) * math.pow(E8_C1m[2], q)))))

E8_F_SCoB_m2 = sum(
    ((((weight[1] * weight[2] / (1 - weight[1])) * math.pow(E8_C1m[1], p) * math.pow(E8_C1m[2], q)),
      ((weight[1] * weight[3] / (1 - weight[1])) * math.pow(E8_C1m[1], p) * math.pow(E8_C1m[3], q)),
      ((weight[1] * weight[4] / (1 - weight[1])) * math.pow(E8_C1m[1], p) * math.pow(E8_C1m[4], q)),
      ((weight[1] * weight[5] / (1 - weight[1])) * math.pow(E8_C1m[1], p) * math.pow(E8_C1m[5], q)),
      ((weight[1] * weight[6] / (1 - weight[1])) * math.pow(E8_C1m[1], p) * math.pow(E8_C1m[6], q)),
      ((weight[1] * weight[7] / (1 - weight[1])) * math.pow(E8_C1m[1], p) * math.pow(E8_C1m[7], q)),
      ((weight[1] * weight[0] / (1 - weight[1])) * math.pow(E8_C1m[1], p) * math.pow(E8_C1m[0], q)))))

E8_F_SCoB_m3 = sum(
    ((((weight[2] * weight[3] / (1 - weight[2])) * math.pow(E8_C1m[2], p) * math.pow(E8_C1m[3], q)),
      ((weight[2] * weight[4] / (1 - weight[2])) * math.pow(E8_C1m[2], p) * math.pow(E8_C1m[4], q)),
      ((weight[2] * weight[5] / (1 - weight[2])) * math.pow(E8_C1m[2], p) * math.pow(E8_C1m[5], q)),
      ((weight[2] * weight[6] / (1 - weight[2])) * math.pow(E8_C1m[2], p) * math.pow(E8_C1m[6], q)),
      ((weight[2] * weight[7] / (1 - weight[2])) * math.pow(E8_C1m[2], p) * math.pow(E8_C1m[7], q)),
      ((weight[2] * weight[0] / (1 - weight[2])) * math.pow(E8_C1m[2], p) * math.pow(E8_C1m[0], q)),
      ((weight[2] * weight[1] / (1 - weight[2])) * math.pow(E8_C1m[2], p) * math.pow(E8_C1m[1], q)))))

E8_F_SCoB_m4 = sum(
    ((((weight[3] * weight[4] / (1 - weight[3])) * math.pow(E8_C1m[3], p) * math.pow(E8_C1m[4], q)),
      ((weight[3] * weight[5] / (1 - weight[3])) * math.pow(E8_C1m[3], p) * math.pow(E8_C1m[5], q)),
      ((weight[3] * weight[6] / (1 - weight[3])) * math.pow(E8_C1m[3], p) * math.pow(E8_C1m[6], q)),
      ((weight[3] * weight[7] / (1 - weight[3])) * math.pow(E8_C1m[3], p) * math.pow(E8_C1m[7], q)),
      ((weight[3] * weight[0] / (1 - weight[3])) * math.pow(E8_C1m[3], p) * math.pow(E8_C1m[0], q)),
      ((weight[3] * weight[1] / (1 - weight[3])) * math.pow(E8_C1m[3], p) * math.pow(E8_C1m[1], q)),
      ((weight[3] * weight[2] / (1 - weight[3])) * math.pow(E8_C1m[3], p) * math.pow(E8_C1m[2], q)))))

E8_F_SCoB_m5 = sum(
    ((((weight[4] * weight[5] / (1 - weight[4])) * math.pow(E8_C1m[4], p) * math.pow(E8_C1m[5], q)),
      ((weight[4] * weight[6] / (1 - weight[4])) * math.pow(E8_C1m[4], p) * math.pow(E8_C1m[6], q)),
      ((weight[4] * weight[7] / (1 - weight[4])) * math.pow(E8_C1m[4], p) * math.pow(E8_C1m[7], q)),
      ((weight[4] * weight[0] / (1 - weight[4])) * math.pow(E8_C1m[4], p) * math.pow(E8_C1m[0], q)),
      ((weight[4] * weight[1] / (1 - weight[4])) * math.pow(E8_C1m[4], p) * math.pow(E8_C1m[1], q)),
      ((weight[4] * weight[2] / (1 - weight[4])) * math.pow(E8_C1m[4], p) * math.pow(E8_C1m[2], q)),
      ((weight[4] * weight[3] / (1 - weight[4])) * math.pow(E8_C1m[4], p) * math.pow(E8_C1m[3], q)))))

E8_F_SCoB_m6 = sum(
    ((((weight[5] * weight[6] / (1 - weight[5])) * math.pow(E8_C1m[5], p) * math.pow(E8_C1m[6], q)),
      ((weight[5] * weight[7] / (1 - weight[5])) * math.pow(E8_C1m[5], p) * math.pow(E8_C1m[7], q)),
      ((weight[5] * weight[0] / (1 - weight[5])) * math.pow(E8_C1m[5], p) * math.pow(E8_C1m[0], q)),
      ((weight[5] * weight[1] / (1 - weight[5])) * math.pow(E8_C1m[5], p) * math.pow(E8_C1m[1], q)),
      ((weight[5] * weight[2] / (1 - weight[5])) * math.pow(E8_C1m[5], p) * math.pow(E8_C1m[2], q)),
      ((weight[5] * weight[3] / (1 - weight[5])) * math.pow(E8_C1m[5], p) * math.pow(E8_C1m[3], q)),
      ((weight[5] * weight[4] / (1 - weight[5])) * math.pow(E8_C1m[5], p) * math.pow(E8_C1m[4], q)))))

E8_F_SCoB_m7 = sum(
    ((((weight[6] * weight[7] / (1 - weight[6])) * math.pow(E8_C1m[6], p) * math.pow(E8_C1m[7], q)),
      ((weight[6] * weight[0] / (1 - weight[6])) * math.pow(E8_C1m[6], p) * math.pow(E8_C1m[0], q)),
      ((weight[6] * weight[1] / (1 - weight[6])) * math.pow(E8_C1m[6], p) * math.pow(E8_C1m[1], q)),
      ((weight[6] * weight[2] / (1 - weight[6])) * math.pow(E8_C1m[6], p) * math.pow(E8_C1m[2], q)),
      ((weight[6] * weight[3] / (1 - weight[6])) * math.pow(E8_C1m[6], p) * math.pow(E8_C1m[3], q)),
      ((weight[6] * weight[4] / (1 - weight[6])) * math.pow(E8_C1m[6], p) * math.pow(E8_C1m[4], q)),
      ((weight[6] * weight[5] / (1 - weight[6])) * math.pow(E8_C1m[6], p) * math.pow(E8_C1m[5], q)))))

E8_F_SCoB_m8 = sum(
    ((((weight[7] * weight[0] / (1 - weight[7])) * math.pow(E8_C1m[7], p) * math.pow(E8_C1m[0], q)),
      ((weight[7] * weight[1] / (1 - weight[7])) * math.pow(E8_C1m[7], p) * math.pow(E8_C1m[1], q)),
      ((weight[7] * weight[2] / (1 - weight[7])) * math.pow(E8_C1m[7], p) * math.pow(E8_C1m[2], q)),
      ((weight[7] * weight[3] / (1 - weight[7])) * math.pow(E8_C1m[7], p) * math.pow(E8_C1m[3], q)),
      ((weight[7] * weight[4] / (1 - weight[7])) * math.pow(E8_C1m[7], p) * math.pow(E8_C1m[4], q)),
      ((weight[7] * weight[5] / (1 - weight[7])) * math.pow(E8_C1m[7], p) * math.pow(E8_C1m[5], q)),
      ((weight[7] * weight[6] / (1 - weight[7])) * math.pow(E8_C1m[7], p) * math.pow(E8_C1m[6], q)))))
E8_F_SCoB_m = pow(sum(
    (E8_F_SCoB_m1, E8_F_SCoB_m2, E8_F_SCoB_m3, E8_F_SCoB_m4, E8_F_SCoB_m5, E8_F_SCoB_m6, E8_F_SCoB_m7, E8_F_SCoB_m8)),
    a)
# </editor-fold>
# <editor-fold desc="E8_F_SCoB_u">
E8_F_SCoB_u1 = sum(
    ((((weight[0] * weight[1] / (1 - weight[0])) * math.pow(E8_C1u[0], p) * math.pow(E8_C1u[1], q)),
      ((weight[0] * weight[2] / (1 - weight[0])) * math.pow(E8_C1u[0], p) * math.pow(E8_C1u[2], q)),
      ((weight[0] * weight[3] / (1 - weight[0])) * math.pow(E8_C1u[0], p) * math.pow(E8_C1u[3], q)),
      ((weight[0] * weight[4] / (1 - weight[0])) * math.pow(E8_C1u[0], p) * math.pow(E8_C1u[4], q)),
      ((weight[0] * weight[5] / (1 - weight[0])) * math.pow(E8_C1u[0], p) * math.pow(E8_C1u[5], q)),
      ((weight[0] * weight[6] / (1 - weight[0])) * math.pow(E8_C1u[0], p) * math.pow(E8_C1u[6], q)),
      ((weight[0] * weight[7] / (1 - weight[0])) * math.pow(E8_C1u[0], p) * math.pow(E8_C1u[2], q)))))

E8_F_SCoB_u2 = sum(
    ((((weight[1] * weight[2] / (1 - weight[1])) * math.pow(E8_C1u[1], p) * math.pow(E8_C1u[2], q)),
      ((weight[1] * weight[3] / (1 - weight[1])) * math.pow(E8_C1u[1], p) * math.pow(E8_C1u[3], q)),
      ((weight[1] * weight[4] / (1 - weight[1])) * math.pow(E8_C1u[1], p) * math.pow(E8_C1u[4], q)),
      ((weight[1] * weight[5] / (1 - weight[1])) * math.pow(E8_C1u[1], p) * math.pow(E8_C1u[5], q)),
      ((weight[1] * weight[6] / (1 - weight[1])) * math.pow(E8_C1u[1], p) * math.pow(E8_C1u[6], q)),
      ((weight[1] * weight[7] / (1 - weight[1])) * math.pow(E8_C1u[1], p) * math.pow(E8_C1u[7], q)),
      ((weight[1] * weight[0] / (1 - weight[1])) * math.pow(E8_C1u[1], p) * math.pow(E8_C1u[0], q)))))

E8_F_SCoB_u3 = sum(
    ((((weight[2] * weight[3] / (1 - weight[2])) * math.pow(E8_C1u[2], p) * math.pow(E8_C1u[3], q)),
      ((weight[2] * weight[4] / (1 - weight[2])) * math.pow(E8_C1u[2], p) * math.pow(E8_C1u[4], q)),
      ((weight[2] * weight[5] / (1 - weight[2])) * math.pow(E8_C1u[2], p) * math.pow(E8_C1u[5], q)),
      ((weight[2] * weight[6] / (1 - weight[2])) * math.pow(E8_C1u[2], p) * math.pow(E8_C1u[6], q)),
      ((weight[2] * weight[7] / (1 - weight[2])) * math.pow(E8_C1u[2], p) * math.pow(E8_C1u[7], q)),
      ((weight[2] * weight[0] / (1 - weight[2])) * math.pow(E8_C1u[2], p) * math.pow(E8_C1u[0], q)),
      ((weight[2] * weight[1] / (1 - weight[2])) * math.pow(E8_C1u[2], p) * math.pow(E8_C1u[1], q)))))

E8_F_SCoB_u4 = sum(
    ((((weight[3] * weight[4] / (1 - weight[3])) * math.pow(E8_C1u[3], p) * math.pow(E8_C1u[4], q)),
      ((weight[3] * weight[5] / (1 - weight[3])) * math.pow(E8_C1u[3], p) * math.pow(E8_C1u[5], q)),
      ((weight[3] * weight[6] / (1 - weight[3])) * math.pow(E8_C1u[3], p) * math.pow(E8_C1u[6], q)),
      ((weight[3] * weight[7] / (1 - weight[3])) * math.pow(E8_C1u[3], p) * math.pow(E8_C1u[7], q)),
      ((weight[3] * weight[0] / (1 - weight[3])) * math.pow(E8_C1u[3], p) * math.pow(E8_C1u[0], q)),
      ((weight[3] * weight[1] / (1 - weight[3])) * math.pow(E8_C1u[3], p) * math.pow(E8_C1u[1], q)),
      ((weight[3] * weight[2] / (1 - weight[3])) * math.pow(E8_C1u[3], p) * math.pow(E8_C1u[2], q)))))

E8_F_SCoB_u5 = sum(
    ((((weight[4] * weight[5] / (1 - weight[4])) * math.pow(E8_C1u[4], p) * math.pow(E8_C1u[5], q)),
      ((weight[4] * weight[6] / (1 - weight[4])) * math.pow(E8_C1u[4], p) * math.pow(E8_C1u[6], q)),
      ((weight[4] * weight[7] / (1 - weight[4])) * math.pow(E8_C1u[4], p) * math.pow(E8_C1u[7], q)),
      ((weight[4] * weight[0] / (1 - weight[4])) * math.pow(E8_C1u[4], p) * math.pow(E8_C1u[0], q)),
      ((weight[4] * weight[1] / (1 - weight[4])) * math.pow(E8_C1u[4], p) * math.pow(E8_C1u[1], q)),
      ((weight[4] * weight[2] / (1 - weight[4])) * math.pow(E8_C1u[4], p) * math.pow(E8_C1u[2], q)),
      ((weight[4] * weight[3] / (1 - weight[4])) * math.pow(E8_C1u[4], p) * math.pow(E8_C1u[3], q)))))

E8_F_SCoB_u6 = sum(
    ((((weight[5] * weight[6] / (1 - weight[5])) * math.pow(E8_C1u[5], p) * math.pow(E8_C1u[6], q)),
      ((weight[5] * weight[7] / (1 - weight[5])) * math.pow(E8_C1u[5], p) * math.pow(E8_C1u[7], q)),
      ((weight[5] * weight[0] / (1 - weight[5])) * math.pow(E8_C1u[5], p) * math.pow(E8_C1u[0], q)),
      ((weight[5] * weight[1] / (1 - weight[5])) * math.pow(E8_C1u[5], p) * math.pow(E8_C1u[1], q)),
      ((weight[5] * weight[2] / (1 - weight[5])) * math.pow(E8_C1u[5], p) * math.pow(E8_C1u[2], q)),
      ((weight[5] * weight[3] / (1 - weight[5])) * math.pow(E8_C1u[5], p) * math.pow(E8_C1u[3], q)),
      ((weight[5] * weight[4] / (1 - weight[5])) * math.pow(E8_C1u[5], p) * math.pow(E8_C1u[4], q)))))

E8_F_SCoB_u7 = sum(
    ((((weight[6] * weight[7] / (1 - weight[6])) * math.pow(E8_C1u[6], p) * math.pow(E8_C1u[7], q)),
      ((weight[6] * weight[0] / (1 - weight[6])) * math.pow(E8_C1u[6], p) * math.pow(E8_C1u[0], q)),
      ((weight[6] * weight[1] / (1 - weight[6])) * math.pow(E8_C1u[6], p) * math.pow(E8_C1u[1], q)),
      ((weight[6] * weight[2] / (1 - weight[6])) * math.pow(E8_C1u[6], p) * math.pow(E8_C1u[2], q)),
      ((weight[6] * weight[3] / (1 - weight[6])) * math.pow(E8_C1u[6], p) * math.pow(E8_C1u[3], q)),
      ((weight[6] * weight[4] / (1 - weight[6])) * math.pow(E8_C1u[6], p) * math.pow(E8_C1u[4], q)),
      ((weight[6] * weight[5] / (1 - weight[6])) * math.pow(E8_C1u[6], p) * math.pow(E8_C1u[5], q)))))

E8_F_SCoB_u8 = sum(
    ((((weight[7] * weight[0] / (1 - weight[7])) * math.pow(E8_C1u[7], p) * math.pow(E8_C1u[0], q)),
      ((weight[7] * weight[1] / (1 - weight[7])) * math.pow(E8_C1u[7], p) * math.pow(E8_C1u[1], q)),
      ((weight[7] * weight[2] / (1 - weight[7])) * math.pow(E8_C1u[7], p) * math.pow(E8_C1u[2], q)),
      ((weight[7] * weight[3] / (1 - weight[7])) * math.pow(E8_C1u[7], p) * math.pow(E8_C1u[3], q)),
      ((weight[7] * weight[4] / (1 - weight[7])) * math.pow(E8_C1u[7], p) * math.pow(E8_C1u[4], q)),
      ((weight[7] * weight[5] / (1 - weight[7])) * math.pow(E8_C1u[7], p) * math.pow(E8_C1u[5], q)),
      ((weight[7] * weight[6] / (1 - weight[7])) * math.pow(E8_C1u[7], p) * math.pow(E8_C1u[6], q)))))
E8_F_SCoB_u = pow(sum(
    (E8_F_SCoB_u1, E8_F_SCoB_u2, E8_F_SCoB_u3, E8_F_SCoB_u4, E8_F_SCoB_u5, E8_F_SCoB_u6, E8_F_SCoB_u7, E8_F_SCoB_u8)),
    a)
# </editor-fold>
# print(E8_F_SCoB_l)
# print(E8_F_SCoB_m)
# print(E8_F_SCoB_u)
E8_SCoB = (E8_F_SCoB_l + 4 * E8_F_SCoB_m + E8_F_SCoB_u) / 6

# <editor-fold desc="E8_F_PCoB_l">
E8_F_PCoB_l1 = numpy.prod((math.pow((p * E8_C1l[0] + q * E8_C1l[1]), (weight[0] * weight[1] / (1 - weight[0]))),
                           math.pow((p * E8_C1l[0] + q * E8_C1l[2]), (weight[0] * weight[2] / (1 - weight[0]))),
                           math.pow((p * E8_C1l[0] + q * E8_C1l[3]), (weight[0] * weight[3] / (1 - weight[0]))),
                           math.pow((p * E8_C1l[0] + q * E8_C1l[4]), (weight[0] * weight[4] / (1 - weight[0]))),
                           math.pow((p * E8_C1l[0] + q * E8_C1l[5]), (weight[0] * weight[5] / (1 - weight[0]))),
                           math.pow((p * E8_C1l[0] + q * E8_C1l[6]), (weight[0] * weight[6] / (1 - weight[0]))),
                           math.pow((p * E8_C1l[0] + q * E8_C1l[7]), (weight[0] * weight[7] / (1 - weight[0])))))

E8_F_PCoB_l2 = numpy.prod((math.pow((p * E8_C1l[1] + q * E8_C1l[2]), (weight[1] * weight[2] / (1 - weight[1]))),
                           math.pow((p * E8_C1l[1] + q * E8_C1l[3]), (weight[1] * weight[3] / (1 - weight[1]))),
                           math.pow((p * E8_C1l[1] + q * E8_C1l[4]), (weight[1] * weight[4] / (1 - weight[1]))),
                           math.pow((p * E8_C1l[1] + q * E8_C1l[5]), (weight[1] * weight[5] / (1 - weight[1]))),
                           math.pow((p * E8_C1l[1] + q * E8_C1l[6]), (weight[1] * weight[6] / (1 - weight[1]))),
                           math.pow((p * E8_C1l[1] + q * E8_C1l[7]), (weight[1] * weight[7] / (1 - weight[1]))),
                           math.pow((p * E8_C1l[1] + q * E8_C1l[0]), (weight[1] * weight[0] / (1 - weight[1])))))

E8_F_PCoB_l3 = numpy.prod((math.pow((p * E8_C1l[2] + q * E8_C1l[3]), (weight[2] * weight[3] / (1 - weight[2]))),
                           math.pow((p * E8_C1l[2] + q * E8_C1l[4]), (weight[2] * weight[4] / (1 - weight[2]))),
                           math.pow((p * E8_C1l[2] + q * E8_C1l[5]), (weight[2] * weight[5] / (1 - weight[2]))),
                           math.pow((p * E8_C1l[2] + q * E8_C1l[6]), (weight[2] * weight[6] / (1 - weight[2]))),
                           math.pow((p * E8_C1l[2] + q * E8_C1l[7]), (weight[2] * weight[7] / (1 - weight[2]))),
                           math.pow((p * E8_C1l[2] + q * E8_C1l[0]), (weight[2] * weight[0] / (1 - weight[2]))),
                           math.pow((p * E8_C1l[2] + q * E8_C1l[1]), (weight[2] * weight[1] / (1 - weight[2])))))

E8_F_PCoB_l4 = numpy.prod((math.pow((p * E8_C1l[3] + q * E8_C1l[4]), (weight[3] * weight[4] / (1 - weight[3]))),
                           math.pow((p * E8_C1l[3] + q * E8_C1l[5]), (weight[3] * weight[5] / (1 - weight[3]))),
                           math.pow((p * E8_C1l[3] + q * E8_C1l[6]), (weight[3] * weight[6] / (1 - weight[3]))),
                           math.pow((p * E8_C1l[3] + q * E8_C1l[7]), (weight[3] * weight[7] / (1 - weight[3]))),
                           math.pow((p * E8_C1l[3] + q * E8_C1l[0]), (weight[3] * weight[0] / (1 - weight[3]))),
                           math.pow((p * E8_C1l[3] + q * E8_C1l[1]), (weight[3] * weight[1] / (1 - weight[3]))),
                           math.pow((p * E8_C1l[3] + q * E8_C1l[2]), (weight[3] * weight[2] / (1 - weight[3])))))

E8_F_PCoB_l5 = numpy.prod((math.pow((p * E8_C1l[4] + q * E8_C1l[5]), (weight[4] * weight[5] / (1 - weight[4]))),
                           math.pow((p * E8_C1l[4] + q * E8_C1l[6]), (weight[4] * weight[6] / (1 - weight[4]))),
                           math.pow((p * E8_C1l[4] + q * E8_C1l[7]), (weight[4] * weight[7] / (1 - weight[4]))),
                           math.pow((p * E8_C1l[4] + q * E8_C1l[0]), (weight[4] * weight[0] / (1 - weight[4]))),
                           math.pow((p * E8_C1l[4] + q * E8_C1l[1]), (weight[4] * weight[1] / (1 - weight[4]))),
                           math.pow((p * E8_C1l[4] + q * E8_C1l[2]), (weight[4] * weight[2] / (1 - weight[4]))),
                           math.pow((p * E8_C1l[4] + q * E8_C1l[3]), (weight[4] * weight[3] / (1 - weight[4])))))

E8_F_PCoB_l6 = numpy.prod((math.pow((p * E8_C1l[5] + q * E8_C1l[6]), (weight[5] * weight[6] / (1 - weight[5]))),
                           math.pow((p * E8_C1l[5] + q * E8_C1l[7]), (weight[5] * weight[7] / (1 - weight[5]))),
                           math.pow((p * E8_C1l[5] + q * E8_C1l[0]), (weight[5] * weight[0] / (1 - weight[5]))),
                           math.pow((p * E8_C1l[5] + q * E8_C1l[1]), (weight[5] * weight[1] / (1 - weight[5]))),
                           math.pow((p * E8_C1l[5] + q * E8_C1l[2]), (weight[5] * weight[2] / (1 - weight[5]))),
                           math.pow((p * E8_C1l[5] + q * E8_C1l[3]), (weight[5] * weight[3] / (1 - weight[5]))),
                           math.pow((p * E8_C1l[5] + q * E8_C1l[4]), (weight[5] * weight[4] / (1 - weight[5])))))

E8_F_PCoB_l7 = numpy.prod((math.pow((p * E8_C1l[6] + q * E8_C1l[7]), (weight[6] * weight[7] / (1 - weight[6]))),
                           math.pow((p * E8_C1l[6] + q * E8_C1l[0]), (weight[6] * weight[0] / (1 - weight[6]))),
                           math.pow((p * E8_C1l[6] + q * E8_C1l[1]), (weight[6] * weight[1] / (1 - weight[6]))),
                           math.pow((p * E8_C1l[6] + q * E8_C1l[2]), (weight[6] * weight[2] / (1 - weight[6]))),
                           math.pow((p * E8_C1l[6] + q * E8_C1l[3]), (weight[6] * weight[3] / (1 - weight[6]))),
                           math.pow((p * E8_C1l[6] + q * E8_C1l[4]), (weight[6] * weight[4] / (1 - weight[6]))),
                           math.pow((p * E8_C1l[6] + q * E8_C1l[5]), (weight[6] * weight[5] / (1 - weight[6])))))

E8_F_PCoB_l8 = numpy.prod((math.pow((p * E8_C1l[7] + q * E8_C1l[0]), (weight[7] * weight[0] / (1 - weight[7]))),
                           math.pow((p * E8_C1l[7] + q * E8_C1l[1]), (weight[7] * weight[1] / (1 - weight[7]))),
                           math.pow((p * E8_C1l[7] + q * E8_C1l[2]), (weight[7] * weight[2] / (1 - weight[7]))),
                           math.pow((p * E8_C1l[7] + q * E8_C1l[3]), (weight[7] * weight[3] / (1 - weight[7]))),
                           math.pow((p * E8_C1l[7] + q * E8_C1l[4]), (weight[7] * weight[4] / (1 - weight[7]))),
                           math.pow((p * E8_C1l[7] + q * E8_C1l[5]), (weight[7] * weight[5] / (1 - weight[7]))),
                           math.pow((p * E8_C1l[7] + q * E8_C1l[6]), (weight[7] * weight[6] / (1 - weight[7])))))
E8_F_PCoB_l = a * numpy.prod(
    (E8_F_PCoB_l1, E8_F_PCoB_l2, E8_F_PCoB_l3, E8_F_PCoB_l4, E8_F_PCoB_l5, E8_F_PCoB_l6, E8_F_PCoB_l7, E8_F_PCoB_l8))
# </editor-fold>
# <editor-fold desc="E8_F_PCoB_m">
E8_F_PCoB_m1 = numpy.prod((math.pow((p * E8_C1m[0] + q * E8_C1m[1]), (weight[0] * weight[1] / (1 - weight[0]))),
                           math.pow((p * E8_C1m[0] + q * E8_C1m[2]), (weight[0] * weight[2] / (1 - weight[0]))),
                           math.pow((p * E8_C1m[0] + q * E8_C1m[3]), (weight[0] * weight[3] / (1 - weight[0]))),
                           math.pow((p * E8_C1m[0] + q * E8_C1m[4]), (weight[0] * weight[4] / (1 - weight[0]))),
                           math.pow((p * E8_C1m[0] + q * E8_C1m[5]), (weight[0] * weight[5] / (1 - weight[0]))),
                           math.pow((p * E8_C1m[0] + q * E8_C1m[6]), (weight[0] * weight[6] / (1 - weight[0]))),
                           math.pow((p * E8_C1m[0] + q * E8_C1m[7]), (weight[0] * weight[7] / (1 - weight[0])))))

E8_F_PCoB_m2 = numpy.prod((math.pow((p * E8_C1m[1] + q * E8_C1m[2]), (weight[1] * weight[2] / (1 - weight[1]))),
                           math.pow((p * E8_C1m[1] + q * E8_C1m[3]), (weight[1] * weight[3] / (1 - weight[1]))),
                           math.pow((p * E8_C1m[1] + q * E8_C1m[4]), (weight[1] * weight[4] / (1 - weight[1]))),
                           math.pow((p * E8_C1m[1] + q * E8_C1m[5]), (weight[1] * weight[5] / (1 - weight[1]))),
                           math.pow((p * E8_C1m[1] + q * E8_C1m[6]), (weight[1] * weight[6] / (1 - weight[1]))),
                           math.pow((p * E8_C1m[1] + q * E8_C1m[7]), (weight[1] * weight[7] / (1 - weight[1]))),
                           math.pow((p * E8_C1m[1] + q * E8_C1m[0]), (weight[1] * weight[0] / (1 - weight[1])))))

E8_F_PCoB_m3 = numpy.prod((math.pow((p * E8_C1m[2] + q * E8_C1m[3]), (weight[2] * weight[3] / (1 - weight[2]))),
                           math.pow((p * E8_C1m[2] + q * E8_C1m[4]), (weight[2] * weight[4] / (1 - weight[2]))),
                           math.pow((p * E8_C1m[2] + q * E8_C1m[5]), (weight[2] * weight[5] / (1 - weight[2]))),
                           math.pow((p * E8_C1m[2] + q * E8_C1m[6]), (weight[2] * weight[6] / (1 - weight[2]))),
                           math.pow((p * E8_C1m[2] + q * E8_C1m[7]), (weight[2] * weight[7] / (1 - weight[2]))),
                           math.pow((p * E8_C1m[2] + q * E8_C1m[0]), (weight[2] * weight[0] / (1 - weight[2]))),
                           math.pow((p * E8_C1m[2] + q * E8_C1m[1]), (weight[2] * weight[1] / (1 - weight[2])))))

E8_F_PCoB_m4 = numpy.prod((math.pow((p * E8_C1m[3] + q * E8_C1m[4]), (weight[3] * weight[4] / (1 - weight[3]))),
                           math.pow((p * E8_C1m[3] + q * E8_C1m[5]), (weight[3] * weight[5] / (1 - weight[3]))),
                           math.pow((p * E8_C1m[3] + q * E8_C1m[6]), (weight[3] * weight[6] / (1 - weight[3]))),
                           math.pow((p * E8_C1m[3] + q * E8_C1m[7]), (weight[3] * weight[7] / (1 - weight[3]))),
                           math.pow((p * E8_C1m[3] + q * E8_C1m[0]), (weight[3] * weight[0] / (1 - weight[3]))),
                           math.pow((p * E8_C1m[3] + q * E8_C1m[1]), (weight[3] * weight[1] / (1 - weight[3]))),
                           math.pow((p * E8_C1m[3] + q * E8_C1m[2]), (weight[3] * weight[2] / (1 - weight[3])))))

E8_F_PCoB_m5 = numpy.prod((math.pow((p * E8_C1m[4] + q * E8_C1m[5]), (weight[4] * weight[5] / (1 - weight[4]))),
                           math.pow((p * E8_C1m[4] + q * E8_C1m[6]), (weight[4] * weight[6] / (1 - weight[4]))),
                           math.pow((p * E8_C1m[4] + q * E8_C1m[7]), (weight[4] * weight[7] / (1 - weight[4]))),
                           math.pow((p * E8_C1m[4] + q * E8_C1m[0]), (weight[4] * weight[0] / (1 - weight[4]))),
                           math.pow((p * E8_C1m[4] + q * E8_C1m[1]), (weight[4] * weight[1] / (1 - weight[4]))),
                           math.pow((p * E8_C1m[4] + q * E8_C1m[2]), (weight[4] * weight[2] / (1 - weight[4]))),
                           math.pow((p * E8_C1m[4] + q * E8_C1m[3]), (weight[4] * weight[3] / (1 - weight[4])))))

E8_F_PCoB_m6 = numpy.prod((math.pow((p * E8_C1m[5] + q * E8_C1m[6]), (weight[5] * weight[6] / (1 - weight[5]))),
                           math.pow((p * E8_C1m[5] + q * E8_C1m[7]), (weight[5] * weight[7] / (1 - weight[5]))),
                           math.pow((p * E8_C1m[5] + q * E8_C1m[0]), (weight[5] * weight[0] / (1 - weight[5]))),
                           math.pow((p * E8_C1m[5] + q * E8_C1m[1]), (weight[5] * weight[1] / (1 - weight[5]))),
                           math.pow((p * E8_C1m[5] + q * E8_C1m[2]), (weight[5] * weight[2] / (1 - weight[5]))),
                           math.pow((p * E8_C1m[5] + q * E8_C1m[3]), (weight[5] * weight[3] / (1 - weight[5]))),
                           math.pow((p * E8_C1m[5] + q * E8_C1m[4]), (weight[5] * weight[4] / (1 - weight[5])))))

E8_F_PCoB_m7 = numpy.prod((math.pow((p * E8_C1m[6] + q * E8_C1m[7]), (weight[6] * weight[7] / (1 - weight[6]))),
                           math.pow((p * E8_C1m[6] + q * E8_C1m[0]), (weight[6] * weight[0] / (1 - weight[6]))),
                           math.pow((p * E8_C1m[6] + q * E8_C1m[1]), (weight[6] * weight[1] / (1 - weight[6]))),
                           math.pow((p * E8_C1m[6] + q * E8_C1m[2]), (weight[6] * weight[2] / (1 - weight[6]))),
                           math.pow((p * E8_C1m[6] + q * E8_C1m[3]), (weight[6] * weight[3] / (1 - weight[6]))),
                           math.pow((p * E8_C1m[6] + q * E8_C1m[4]), (weight[6] * weight[4] / (1 - weight[6]))),
                           math.pow((p * E8_C1m[6] + q * E8_C1m[5]), (weight[6] * weight[5] / (1 - weight[6])))))

E8_F_PCoB_m8 = numpy.prod((math.pow((p * E8_C1m[7] + q * E8_C1m[0]), (weight[7] * weight[0] / (1 - weight[7]))),
                           math.pow((p * E8_C1m[7] + q * E8_C1m[1]), (weight[7] * weight[1] / (1 - weight[7]))),
                           math.pow((p * E8_C1m[7] + q * E8_C1m[2]), (weight[7] * weight[2] / (1 - weight[7]))),
                           math.pow((p * E8_C1m[7] + q * E8_C1m[3]), (weight[7] * weight[3] / (1 - weight[7]))),
                           math.pow((p * E8_C1m[7] + q * E8_C1m[4]), (weight[7] * weight[4] / (1 - weight[7]))),
                           math.pow((p * E8_C1m[7] + q * E8_C1m[5]), (weight[7] * weight[5] / (1 - weight[7]))),
                           math.pow((p * E8_C1m[7] + q * E8_C1m[6]), (weight[7] * weight[6] / (1 - weight[7])))))
E8_F_PCoB_m = a * numpy.prod(
    (E8_F_PCoB_m1, E8_F_PCoB_m2, E8_F_PCoB_m3, E8_F_PCoB_m4, E8_F_PCoB_m5, E8_F_PCoB_m6, E8_F_PCoB_m7, E8_F_PCoB_m8))
# </editor-fold>
# <editor-fold desc="E8_F_PCoB_u">
E8_F_PCoB_u1 = numpy.prod((math.pow((p * E8_C1u[0] + q * E8_C1u[1]), (weight[0] * weight[1] / (1 - weight[0]))),
                           math.pow((p * E8_C1u[0] + q * E8_C1u[2]), (weight[0] * weight[2] / (1 - weight[0]))),
                           math.pow((p * E8_C1u[0] + q * E8_C1u[3]), (weight[0] * weight[3] / (1 - weight[0]))),
                           math.pow((p * E8_C1u[0] + q * E8_C1u[4]), (weight[0] * weight[4] / (1 - weight[0]))),
                           math.pow((p * E8_C1u[0] + q * E8_C1u[5]), (weight[0] * weight[5] / (1 - weight[0]))),
                           math.pow((p * E8_C1u[0] + q * E8_C1u[6]), (weight[0] * weight[6] / (1 - weight[0]))),
                           math.pow((p * E8_C1u[0] + q * E8_C1u[7]), (weight[0] * weight[7] / (1 - weight[0])))))

E8_F_PCoB_u2 = numpy.prod((math.pow((p * E8_C1u[1] + q * E8_C1u[2]), (weight[1] * weight[2] / (1 - weight[1]))),
                           math.pow((p * E8_C1u[1] + q * E8_C1u[3]), (weight[1] * weight[3] / (1 - weight[1]))),
                           math.pow((p * E8_C1u[1] + q * E8_C1u[4]), (weight[1] * weight[4] / (1 - weight[1]))),
                           math.pow((p * E8_C1u[1] + q * E8_C1u[5]), (weight[1] * weight[5] / (1 - weight[1]))),
                           math.pow((p * E8_C1u[1] + q * E8_C1u[6]), (weight[1] * weight[6] / (1 - weight[1]))),
                           math.pow((p * E8_C1u[1] + q * E8_C1u[7]), (weight[1] * weight[7] / (1 - weight[1]))),
                           math.pow((p * E8_C1u[1] + q * E8_C1u[0]), (weight[1] * weight[0] / (1 - weight[1])))))

E8_F_PCoB_u3 = numpy.prod((math.pow((p * E8_C1u[2] + q * E8_C1u[3]), (weight[2] * weight[3] / (1 - weight[2]))),
                           math.pow((p * E8_C1u[2] + q * E8_C1u[4]), (weight[2] * weight[4] / (1 - weight[2]))),
                           math.pow((p * E8_C1u[2] + q * E8_C1u[5]), (weight[2] * weight[5] / (1 - weight[2]))),
                           math.pow((p * E8_C1u[2] + q * E8_C1u[6]), (weight[2] * weight[6] / (1 - weight[2]))),
                           math.pow((p * E8_C1u[2] + q * E8_C1u[7]), (weight[2] * weight[7] / (1 - weight[2]))),
                           math.pow((p * E8_C1u[2] + q * E8_C1u[0]), (weight[2] * weight[0] / (1 - weight[2]))),
                           math.pow((p * E8_C1u[2] + q * E8_C1u[1]), (weight[2] * weight[1] / (1 - weight[2])))))

E8_F_PCoB_u4 = numpy.prod((math.pow((p * E8_C1u[3] + q * E8_C1u[4]), (weight[3] * weight[4] / (1 - weight[3]))),
                           math.pow((p * E8_C1u[3] + q * E8_C1u[5]), (weight[3] * weight[5] / (1 - weight[3]))),
                           math.pow((p * E8_C1u[3] + q * E8_C1u[6]), (weight[3] * weight[6] / (1 - weight[3]))),
                           math.pow((p * E8_C1u[3] + q * E8_C1u[7]), (weight[3] * weight[7] / (1 - weight[3]))),
                           math.pow((p * E8_C1u[3] + q * E8_C1u[0]), (weight[3] * weight[0] / (1 - weight[3]))),
                           math.pow((p * E8_C1u[3] + q * E8_C1u[1]), (weight[3] * weight[1] / (1 - weight[3]))),
                           math.pow((p * E8_C1u[3] + q * E8_C1u[2]), (weight[3] * weight[2] / (1 - weight[3])))))

E8_F_PCoB_u5 = numpy.prod((math.pow((p * E8_C1u[4] + q * E8_C1u[5]), (weight[4] * weight[5] / (1 - weight[4]))),
                           math.pow((p * E8_C1u[4] + q * E8_C1u[6]), (weight[4] * weight[6] / (1 - weight[4]))),
                           math.pow((p * E8_C1u[4] + q * E8_C1u[7]), (weight[4] * weight[7] / (1 - weight[4]))),
                           math.pow((p * E8_C1u[4] + q * E8_C1u[0]), (weight[4] * weight[0] / (1 - weight[4]))),
                           math.pow((p * E8_C1u[4] + q * E8_C1u[1]), (weight[4] * weight[1] / (1 - weight[4]))),
                           math.pow((p * E8_C1u[4] + q * E8_C1u[2]), (weight[4] * weight[2] / (1 - weight[4]))),
                           math.pow((p * E8_C1u[4] + q * E8_C1u[3]), (weight[4] * weight[3] / (1 - weight[4])))))

E8_F_PCoB_u6 = numpy.prod((math.pow((p * E8_C1u[5] + q * E8_C1u[6]), (weight[5] * weight[6] / (1 - weight[5]))),
                           math.pow((p * E8_C1u[5] + q * E8_C1u[7]), (weight[5] * weight[7] / (1 - weight[5]))),
                           math.pow((p * E8_C1u[5] + q * E8_C1u[0]), (weight[5] * weight[0] / (1 - weight[5]))),
                           math.pow((p * E8_C1u[5] + q * E8_C1u[1]), (weight[5] * weight[1] / (1 - weight[5]))),
                           math.pow((p * E8_C1u[5] + q * E8_C1u[2]), (weight[5] * weight[2] / (1 - weight[5]))),
                           math.pow((p * E8_C1u[5] + q * E8_C1u[3]), (weight[5] * weight[3] / (1 - weight[5]))),
                           math.pow((p * E8_C1u[5] + q * E8_C1u[4]), (weight[5] * weight[4] / (1 - weight[5])))))

E8_F_PCoB_u7 = numpy.prod((math.pow((p * E8_C1u[6] + q * E8_C1u[7]), (weight[6] * weight[7] / (1 - weight[6]))),
                           math.pow((p * E8_C1u[6] + q * E8_C1u[0]), (weight[6] * weight[0] / (1 - weight[6]))),
                           math.pow((p * E8_C1u[6] + q * E8_C1u[1]), (weight[6] * weight[1] / (1 - weight[6]))),
                           math.pow((p * E8_C1u[6] + q * E8_C1u[2]), (weight[6] * weight[2] / (1 - weight[6]))),
                           math.pow((p * E8_C1u[6] + q * E8_C1u[3]), (weight[6] * weight[3] / (1 - weight[6]))),
                           math.pow((p * E8_C1u[6] + q * E8_C1u[4]), (weight[6] * weight[4] / (1 - weight[6]))),
                           math.pow((p * E8_C1u[6] + q * E8_C1u[5]), (weight[6] * weight[5] / (1 - weight[6])))))

E8_F_PCoB_u8 = numpy.prod((math.pow((p * E8_C1u[7] + q * E8_C1u[0]), (weight[7] * weight[0] / (1 - weight[7]))),
                           math.pow((p * E8_C1u[7] + q * E8_C1u[1]), (weight[7] * weight[1] / (1 - weight[7]))),
                           math.pow((p * E8_C1u[7] + q * E8_C1u[2]), (weight[7] * weight[2] / (1 - weight[7]))),
                           math.pow((p * E8_C1u[7] + q * E8_C1u[3]), (weight[7] * weight[3] / (1 - weight[7]))),
                           math.pow((p * E8_C1u[7] + q * E8_C1u[4]), (weight[7] * weight[4] / (1 - weight[7]))),
                           math.pow((p * E8_C1u[7] + q * E8_C1u[5]), (weight[7] * weight[5] / (1 - weight[7]))),
                           math.pow((p * E8_C1u[7] + q * E8_C1u[6]), (weight[7] * weight[6] / (1 - weight[7])))))
E8_F_PCoB_u = a * numpy.prod(
    (E8_F_PCoB_u1, E8_F_PCoB_u2, E8_F_PCoB_u3, E8_F_PCoB_u4, E8_F_PCoB_u5, E8_F_PCoB_u6, E8_F_PCoB_u7, E8_F_PCoB_u8))
# </editor-fold>
# print(E8_F_PCoB_l)
# print(E8_F_PCoB_m)
# print(E8_F_PCoB_u)
E8_PCoB = (E8_F_PCoB_l + 4 * E8_F_PCoB_m + E8_F_PCoB_u) / 6

# E9
# E9# <editor-fold desc="E9_F_SCoB_l">
E9_F_SCoB_l1 = sum(
    ((((weight[0] * weight[1] / (1 - weight[0])) * math.pow(E9_C1l[0], p) * math.pow(E9_C1l[1], q)),
      ((weight[0] * weight[2] / (1 - weight[0])) * math.pow(E9_C1l[0], p) * math.pow(E9_C1l[2], q)),
      ((weight[0] * weight[3] / (1 - weight[0])) * math.pow(E9_C1l[0], p) * math.pow(E9_C1l[3], q)),
      ((weight[0] * weight[4] / (1 - weight[0])) * math.pow(E9_C1l[0], p) * math.pow(E9_C1l[4], q)),
      ((weight[0] * weight[5] / (1 - weight[0])) * math.pow(E9_C1l[0], p) * math.pow(E9_C1l[5], q)),
      ((weight[0] * weight[6] / (1 - weight[0])) * math.pow(E9_C1l[0], p) * math.pow(E9_C1l[6], q)),
      ((weight[0] * weight[7] / (1 - weight[0])) * math.pow(E9_C1l[0], p) * math.pow(E9_C1l[2], q)))))

E9_F_SCoB_l2 = sum(
    ((((weight[1] * weight[2] / (1 - weight[1])) * math.pow(E9_C1l[1], p) * math.pow(E9_C1l[2], q)),
      ((weight[1] * weight[3] / (1 - weight[1])) * math.pow(E9_C1l[1], p) * math.pow(E9_C1l[3], q)),
      ((weight[1] * weight[4] / (1 - weight[1])) * math.pow(E9_C1l[1], p) * math.pow(E9_C1l[4], q)),
      ((weight[1] * weight[5] / (1 - weight[1])) * math.pow(E9_C1l[1], p) * math.pow(E9_C1l[5], q)),
      ((weight[1] * weight[6] / (1 - weight[1])) * math.pow(E9_C1l[1], p) * math.pow(E9_C1l[6], q)),
      ((weight[1] * weight[7] / (1 - weight[1])) * math.pow(E9_C1l[1], p) * math.pow(E9_C1l[7], q)),
      ((weight[1] * weight[0] / (1 - weight[1])) * math.pow(E9_C1l[1], p) * math.pow(E9_C1l[0], q)))))

E9_F_SCoB_l3 = sum(
    ((((weight[2] * weight[3] / (1 - weight[2])) * math.pow(E9_C1l[2], p) * math.pow(E9_C1l[3], q)),
      ((weight[2] * weight[4] / (1 - weight[2])) * math.pow(E9_C1l[2], p) * math.pow(E9_C1l[4], q)),
      ((weight[2] * weight[5] / (1 - weight[2])) * math.pow(E9_C1l[2], p) * math.pow(E9_C1l[5], q)),
      ((weight[2] * weight[6] / (1 - weight[2])) * math.pow(E9_C1l[2], p) * math.pow(E9_C1l[6], q)),
      ((weight[2] * weight[7] / (1 - weight[2])) * math.pow(E9_C1l[2], p) * math.pow(E9_C1l[7], q)),
      ((weight[2] * weight[0] / (1 - weight[2])) * math.pow(E9_C1l[2], p) * math.pow(E9_C1l[0], q)),
      ((weight[2] * weight[1] / (1 - weight[2])) * math.pow(E9_C1l[2], p) * math.pow(E9_C1l[1], q)))))

E9_F_SCoB_l4 = sum(
    ((((weight[3] * weight[4] / (1 - weight[3])) * math.pow(E9_C1l[3], p) * math.pow(E9_C1l[4], q)),
      ((weight[3] * weight[5] / (1 - weight[3])) * math.pow(E9_C1l[3], p) * math.pow(E9_C1l[5], q)),
      ((weight[3] * weight[6] / (1 - weight[3])) * math.pow(E9_C1l[3], p) * math.pow(E9_C1l[6], q)),
      ((weight[3] * weight[7] / (1 - weight[3])) * math.pow(E9_C1l[3], p) * math.pow(E9_C1l[7], q)),
      ((weight[3] * weight[0] / (1 - weight[3])) * math.pow(E9_C1l[3], p) * math.pow(E9_C1l[0], q)),
      ((weight[3] * weight[1] / (1 - weight[3])) * math.pow(E9_C1l[3], p) * math.pow(E9_C1l[1], q)),
      ((weight[3] * weight[2] / (1 - weight[3])) * math.pow(E9_C1l[3], p) * math.pow(E9_C1l[2], q)))))

E9_F_SCoB_l5 = sum(
    ((((weight[4] * weight[5] / (1 - weight[4])) * math.pow(E9_C1l[4], p) * math.pow(E9_C1l[5], q)),
      ((weight[4] * weight[6] / (1 - weight[4])) * math.pow(E9_C1l[4], p) * math.pow(E9_C1l[6], q)),
      ((weight[4] * weight[7] / (1 - weight[4])) * math.pow(E9_C1l[4], p) * math.pow(E9_C1l[7], q)),
      ((weight[4] * weight[0] / (1 - weight[4])) * math.pow(E9_C1l[4], p) * math.pow(E9_C1l[0], q)),
      ((weight[4] * weight[1] / (1 - weight[4])) * math.pow(E9_C1l[4], p) * math.pow(E9_C1l[1], q)),
      ((weight[4] * weight[2] / (1 - weight[4])) * math.pow(E9_C1l[4], p) * math.pow(E9_C1l[2], q)),
      ((weight[4] * weight[3] / (1 - weight[4])) * math.pow(E9_C1l[4], p) * math.pow(E9_C1l[3], q)))))

E9_F_SCoB_l6 = sum(
    ((((weight[5] * weight[6] / (1 - weight[5])) * math.pow(E9_C1l[5], p) * math.pow(E9_C1l[6], q)),
      ((weight[5] * weight[7] / (1 - weight[5])) * math.pow(E9_C1l[5], p) * math.pow(E9_C1l[7], q)),
      ((weight[5] * weight[0] / (1 - weight[5])) * math.pow(E9_C1l[5], p) * math.pow(E9_C1l[0], q)),
      ((weight[5] * weight[1] / (1 - weight[5])) * math.pow(E9_C1l[5], p) * math.pow(E9_C1l[1], q)),
      ((weight[5] * weight[2] / (1 - weight[5])) * math.pow(E9_C1l[5], p) * math.pow(E9_C1l[2], q)),
      ((weight[5] * weight[3] / (1 - weight[5])) * math.pow(E9_C1l[5], p) * math.pow(E9_C1l[3], q)),
      ((weight[5] * weight[4] / (1 - weight[5])) * math.pow(E9_C1l[5], p) * math.pow(E9_C1l[4], q)))))

E9_F_SCoB_l7 = sum(
    ((((weight[6] * weight[7] / (1 - weight[6])) * math.pow(E9_C1l[6], p) * math.pow(E9_C1l[7], q)),
      ((weight[6] * weight[0] / (1 - weight[6])) * math.pow(E9_C1l[6], p) * math.pow(E9_C1l[0], q)),
      ((weight[6] * weight[1] / (1 - weight[6])) * math.pow(E9_C1l[6], p) * math.pow(E9_C1l[1], q)),
      ((weight[6] * weight[2] / (1 - weight[6])) * math.pow(E9_C1l[6], p) * math.pow(E9_C1l[2], q)),
      ((weight[6] * weight[3] / (1 - weight[6])) * math.pow(E9_C1l[6], p) * math.pow(E9_C1l[3], q)),
      ((weight[6] * weight[4] / (1 - weight[6])) * math.pow(E9_C1l[6], p) * math.pow(E9_C1l[4], q)),
      ((weight[6] * weight[5] / (1 - weight[6])) * math.pow(E9_C1l[6], p) * math.pow(E9_C1l[5], q)))))

E9_F_SCoB_l8 = sum(
    ((((weight[7] * weight[0] / (1 - weight[7])) * math.pow(E9_C1l[7], p) * math.pow(E9_C1l[0], q)),
      ((weight[7] * weight[1] / (1 - weight[7])) * math.pow(E9_C1l[7], p) * math.pow(E9_C1l[1], q)),
      ((weight[7] * weight[2] / (1 - weight[7])) * math.pow(E9_C1l[7], p) * math.pow(E9_C1l[2], q)),
      ((weight[7] * weight[3] / (1 - weight[7])) * math.pow(E9_C1l[7], p) * math.pow(E9_C1l[3], q)),
      ((weight[7] * weight[4] / (1 - weight[7])) * math.pow(E9_C1l[7], p) * math.pow(E9_C1l[4], q)),
      ((weight[7] * weight[5] / (1 - weight[7])) * math.pow(E9_C1l[7], p) * math.pow(E9_C1l[5], q)),
      ((weight[7] * weight[6] / (1 - weight[7])) * math.pow(E9_C1l[7], p) * math.pow(E9_C1l[6], q)))))
E9_F_SCoB_l = pow(sum(
    (E9_F_SCoB_l1, E9_F_SCoB_l2, E9_F_SCoB_l3, E9_F_SCoB_l4, E9_F_SCoB_l5, E9_F_SCoB_l6, E9_F_SCoB_l7, E9_F_SCoB_l8)),
    a)
# </editor-fold>
# <editor-fold desc="E9_F_SCoB_m">
E9_F_SCoB_m1 = sum(
    ((((weight[0] * weight[1] / (1 - weight[0])) * math.pow(E9_C1m[0], p) * math.pow(E9_C1m[1], q)),
      ((weight[0] * weight[2] / (1 - weight[0])) * math.pow(E9_C1m[0], p) * math.pow(E9_C1m[2], q)),
      ((weight[0] * weight[3] / (1 - weight[0])) * math.pow(E9_C1m[0], p) * math.pow(E9_C1m[3], q)),
      ((weight[0] * weight[4] / (1 - weight[0])) * math.pow(E9_C1m[0], p) * math.pow(E9_C1m[4], q)),
      ((weight[0] * weight[5] / (1 - weight[0])) * math.pow(E9_C1m[0], p) * math.pow(E9_C1m[5], q)),
      ((weight[0] * weight[6] / (1 - weight[0])) * math.pow(E9_C1m[0], p) * math.pow(E9_C1m[6], q)),
      ((weight[0] * weight[7] / (1 - weight[0])) * math.pow(E9_C1m[0], p) * math.pow(E9_C1m[2], q)))))

E9_F_SCoB_m2 = sum(
    ((((weight[1] * weight[2] / (1 - weight[1])) * math.pow(E9_C1m[1], p) * math.pow(E9_C1m[2], q)),
      ((weight[1] * weight[3] / (1 - weight[1])) * math.pow(E9_C1m[1], p) * math.pow(E9_C1m[3], q)),
      ((weight[1] * weight[4] / (1 - weight[1])) * math.pow(E9_C1m[1], p) * math.pow(E9_C1m[4], q)),
      ((weight[1] * weight[5] / (1 - weight[1])) * math.pow(E9_C1m[1], p) * math.pow(E9_C1m[5], q)),
      ((weight[1] * weight[6] / (1 - weight[1])) * math.pow(E9_C1m[1], p) * math.pow(E9_C1m[6], q)),
      ((weight[1] * weight[7] / (1 - weight[1])) * math.pow(E9_C1m[1], p) * math.pow(E9_C1m[7], q)),
      ((weight[1] * weight[0] / (1 - weight[1])) * math.pow(E9_C1m[1], p) * math.pow(E9_C1m[0], q)))))

E9_F_SCoB_m3 = sum(
    ((((weight[2] * weight[3] / (1 - weight[2])) * math.pow(E9_C1m[2], p) * math.pow(E9_C1m[3], q)),
      ((weight[2] * weight[4] / (1 - weight[2])) * math.pow(E9_C1m[2], p) * math.pow(E9_C1m[4], q)),
      ((weight[2] * weight[5] / (1 - weight[2])) * math.pow(E9_C1m[2], p) * math.pow(E9_C1m[5], q)),
      ((weight[2] * weight[6] / (1 - weight[2])) * math.pow(E9_C1m[2], p) * math.pow(E9_C1m[6], q)),
      ((weight[2] * weight[7] / (1 - weight[2])) * math.pow(E9_C1m[2], p) * math.pow(E9_C1m[7], q)),
      ((weight[2] * weight[0] / (1 - weight[2])) * math.pow(E9_C1m[2], p) * math.pow(E9_C1m[0], q)),
      ((weight[2] * weight[1] / (1 - weight[2])) * math.pow(E9_C1m[2], p) * math.pow(E9_C1m[1], q)))))

E9_F_SCoB_m4 = sum(
    ((((weight[3] * weight[4] / (1 - weight[3])) * math.pow(E9_C1m[3], p) * math.pow(E9_C1m[4], q)),
      ((weight[3] * weight[5] / (1 - weight[3])) * math.pow(E9_C1m[3], p) * math.pow(E9_C1m[5], q)),
      ((weight[3] * weight[6] / (1 - weight[3])) * math.pow(E9_C1m[3], p) * math.pow(E9_C1m[6], q)),
      ((weight[3] * weight[7] / (1 - weight[3])) * math.pow(E9_C1m[3], p) * math.pow(E9_C1m[7], q)),
      ((weight[3] * weight[0] / (1 - weight[3])) * math.pow(E9_C1m[3], p) * math.pow(E9_C1m[0], q)),
      ((weight[3] * weight[1] / (1 - weight[3])) * math.pow(E9_C1m[3], p) * math.pow(E9_C1m[1], q)),
      ((weight[3] * weight[2] / (1 - weight[3])) * math.pow(E9_C1m[3], p) * math.pow(E9_C1m[2], q)))))

E9_F_SCoB_m5 = sum(
    ((((weight[4] * weight[5] / (1 - weight[4])) * math.pow(E9_C1m[4], p) * math.pow(E9_C1m[5], q)),
      ((weight[4] * weight[6] / (1 - weight[4])) * math.pow(E9_C1m[4], p) * math.pow(E9_C1m[6], q)),
      ((weight[4] * weight[7] / (1 - weight[4])) * math.pow(E9_C1m[4], p) * math.pow(E9_C1m[7], q)),
      ((weight[4] * weight[0] / (1 - weight[4])) * math.pow(E9_C1m[4], p) * math.pow(E9_C1m[0], q)),
      ((weight[4] * weight[1] / (1 - weight[4])) * math.pow(E9_C1m[4], p) * math.pow(E9_C1m[1], q)),
      ((weight[4] * weight[2] / (1 - weight[4])) * math.pow(E9_C1m[4], p) * math.pow(E9_C1m[2], q)),
      ((weight[4] * weight[3] / (1 - weight[4])) * math.pow(E9_C1m[4], p) * math.pow(E9_C1m[3], q)))))

E9_F_SCoB_m6 = sum(
    ((((weight[5] * weight[6] / (1 - weight[5])) * math.pow(E9_C1m[5], p) * math.pow(E9_C1m[6], q)),
      ((weight[5] * weight[7] / (1 - weight[5])) * math.pow(E9_C1m[5], p) * math.pow(E9_C1m[7], q)),
      ((weight[5] * weight[0] / (1 - weight[5])) * math.pow(E9_C1m[5], p) * math.pow(E9_C1m[0], q)),
      ((weight[5] * weight[1] / (1 - weight[5])) * math.pow(E9_C1m[5], p) * math.pow(E9_C1m[1], q)),
      ((weight[5] * weight[2] / (1 - weight[5])) * math.pow(E9_C1m[5], p) * math.pow(E9_C1m[2], q)),
      ((weight[5] * weight[3] / (1 - weight[5])) * math.pow(E9_C1m[5], p) * math.pow(E9_C1m[3], q)),
      ((weight[5] * weight[4] / (1 - weight[5])) * math.pow(E9_C1m[5], p) * math.pow(E9_C1m[4], q)))))

E9_F_SCoB_m7 = sum(
    ((((weight[6] * weight[7] / (1 - weight[6])) * math.pow(E9_C1m[6], p) * math.pow(E9_C1m[7], q)),
      ((weight[6] * weight[0] / (1 - weight[6])) * math.pow(E9_C1m[6], p) * math.pow(E9_C1m[0], q)),
      ((weight[6] * weight[1] / (1 - weight[6])) * math.pow(E9_C1m[6], p) * math.pow(E9_C1m[1], q)),
      ((weight[6] * weight[2] / (1 - weight[6])) * math.pow(E9_C1m[6], p) * math.pow(E9_C1m[2], q)),
      ((weight[6] * weight[3] / (1 - weight[6])) * math.pow(E9_C1m[6], p) * math.pow(E9_C1m[3], q)),
      ((weight[6] * weight[4] / (1 - weight[6])) * math.pow(E9_C1m[6], p) * math.pow(E9_C1m[4], q)),
      ((weight[6] * weight[5] / (1 - weight[6])) * math.pow(E9_C1m[6], p) * math.pow(E9_C1m[5], q)))))

E9_F_SCoB_m8 = sum(
    ((((weight[7] * weight[0] / (1 - weight[7])) * math.pow(E9_C1m[7], p) * math.pow(E9_C1m[0], q)),
      ((weight[7] * weight[1] / (1 - weight[7])) * math.pow(E9_C1m[7], p) * math.pow(E9_C1m[1], q)),
      ((weight[7] * weight[2] / (1 - weight[7])) * math.pow(E9_C1m[7], p) * math.pow(E9_C1m[2], q)),
      ((weight[7] * weight[3] / (1 - weight[7])) * math.pow(E9_C1m[7], p) * math.pow(E9_C1m[3], q)),
      ((weight[7] * weight[4] / (1 - weight[7])) * math.pow(E9_C1m[7], p) * math.pow(E9_C1m[4], q)),
      ((weight[7] * weight[5] / (1 - weight[7])) * math.pow(E9_C1m[7], p) * math.pow(E9_C1m[5], q)),
      ((weight[7] * weight[6] / (1 - weight[7])) * math.pow(E9_C1m[7], p) * math.pow(E9_C1m[6], q)))))
E9_F_SCoB_m = pow(sum(
    (E9_F_SCoB_m1, E9_F_SCoB_m2, E9_F_SCoB_m3, E9_F_SCoB_m4, E9_F_SCoB_m5, E9_F_SCoB_m6, E9_F_SCoB_m7, E9_F_SCoB_m8)),
    a)
# </editor-fold>
# <editor-fold desc="E9_F_SCoB_u">
E9_F_SCoB_u1 = sum(
    ((((weight[0] * weight[1] / (1 - weight[0])) * math.pow(E9_C1u[0], p) * math.pow(E9_C1u[1], q)),
      ((weight[0] * weight[2] / (1 - weight[0])) * math.pow(E9_C1u[0], p) * math.pow(E9_C1u[2], q)),
      ((weight[0] * weight[3] / (1 - weight[0])) * math.pow(E9_C1u[0], p) * math.pow(E9_C1u[3], q)),
      ((weight[0] * weight[4] / (1 - weight[0])) * math.pow(E9_C1u[0], p) * math.pow(E9_C1u[4], q)),
      ((weight[0] * weight[5] / (1 - weight[0])) * math.pow(E9_C1u[0], p) * math.pow(E9_C1u[5], q)),
      ((weight[0] * weight[6] / (1 - weight[0])) * math.pow(E9_C1u[0], p) * math.pow(E9_C1u[6], q)),
      ((weight[0] * weight[7] / (1 - weight[0])) * math.pow(E9_C1u[0], p) * math.pow(E9_C1u[2], q)))))

E9_F_SCoB_u2 = sum(
    ((((weight[1] * weight[2] / (1 - weight[1])) * math.pow(E9_C1u[1], p) * math.pow(E9_C1u[2], q)),
      ((weight[1] * weight[3] / (1 - weight[1])) * math.pow(E9_C1u[1], p) * math.pow(E9_C1u[3], q)),
      ((weight[1] * weight[4] / (1 - weight[1])) * math.pow(E9_C1u[1], p) * math.pow(E9_C1u[4], q)),
      ((weight[1] * weight[5] / (1 - weight[1])) * math.pow(E9_C1u[1], p) * math.pow(E9_C1u[5], q)),
      ((weight[1] * weight[6] / (1 - weight[1])) * math.pow(E9_C1u[1], p) * math.pow(E9_C1u[6], q)),
      ((weight[1] * weight[7] / (1 - weight[1])) * math.pow(E9_C1u[1], p) * math.pow(E9_C1u[7], q)),
      ((weight[1] * weight[0] / (1 - weight[1])) * math.pow(E9_C1u[1], p) * math.pow(E9_C1u[0], q)))))

E9_F_SCoB_u3 = sum(
    ((((weight[2] * weight[3] / (1 - weight[2])) * math.pow(E9_C1u[2], p) * math.pow(E9_C1u[3], q)),
      ((weight[2] * weight[4] / (1 - weight[2])) * math.pow(E9_C1u[2], p) * math.pow(E9_C1u[4], q)),
      ((weight[2] * weight[5] / (1 - weight[2])) * math.pow(E9_C1u[2], p) * math.pow(E9_C1u[5], q)),
      ((weight[2] * weight[6] / (1 - weight[2])) * math.pow(E9_C1u[2], p) * math.pow(E9_C1u[6], q)),
      ((weight[2] * weight[7] / (1 - weight[2])) * math.pow(E9_C1u[2], p) * math.pow(E9_C1u[7], q)),
      ((weight[2] * weight[0] / (1 - weight[2])) * math.pow(E9_C1u[2], p) * math.pow(E9_C1u[0], q)),
      ((weight[2] * weight[1] / (1 - weight[2])) * math.pow(E9_C1u[2], p) * math.pow(E9_C1u[1], q)))))

E9_F_SCoB_u4 = sum(
    ((((weight[3] * weight[4] / (1 - weight[3])) * math.pow(E9_C1u[3], p) * math.pow(E9_C1u[4], q)),
      ((weight[3] * weight[5] / (1 - weight[3])) * math.pow(E9_C1u[3], p) * math.pow(E9_C1u[5], q)),
      ((weight[3] * weight[6] / (1 - weight[3])) * math.pow(E9_C1u[3], p) * math.pow(E9_C1u[6], q)),
      ((weight[3] * weight[7] / (1 - weight[3])) * math.pow(E9_C1u[3], p) * math.pow(E9_C1u[7], q)),
      ((weight[3] * weight[0] / (1 - weight[3])) * math.pow(E9_C1u[3], p) * math.pow(E9_C1u[0], q)),
      ((weight[3] * weight[1] / (1 - weight[3])) * math.pow(E9_C1u[3], p) * math.pow(E9_C1u[1], q)),
      ((weight[3] * weight[2] / (1 - weight[3])) * math.pow(E9_C1u[3], p) * math.pow(E9_C1u[2], q)))))

E9_F_SCoB_u5 = sum(
    ((((weight[4] * weight[5] / (1 - weight[4])) * math.pow(E9_C1u[4], p) * math.pow(E9_C1u[5], q)),
      ((weight[4] * weight[6] / (1 - weight[4])) * math.pow(E9_C1u[4], p) * math.pow(E9_C1u[6], q)),
      ((weight[4] * weight[7] / (1 - weight[4])) * math.pow(E9_C1u[4], p) * math.pow(E9_C1u[7], q)),
      ((weight[4] * weight[0] / (1 - weight[4])) * math.pow(E9_C1u[4], p) * math.pow(E9_C1u[0], q)),
      ((weight[4] * weight[1] / (1 - weight[4])) * math.pow(E9_C1u[4], p) * math.pow(E9_C1u[1], q)),
      ((weight[4] * weight[2] / (1 - weight[4])) * math.pow(E9_C1u[4], p) * math.pow(E9_C1u[2], q)),
      ((weight[4] * weight[3] / (1 - weight[4])) * math.pow(E9_C1u[4], p) * math.pow(E9_C1u[3], q)))))

E9_F_SCoB_u6 = sum(
    ((((weight[5] * weight[6] / (1 - weight[5])) * math.pow(E9_C1u[5], p) * math.pow(E9_C1u[6], q)),
      ((weight[5] * weight[7] / (1 - weight[5])) * math.pow(E9_C1u[5], p) * math.pow(E9_C1u[7], q)),
      ((weight[5] * weight[0] / (1 - weight[5])) * math.pow(E9_C1u[5], p) * math.pow(E9_C1u[0], q)),
      ((weight[5] * weight[1] / (1 - weight[5])) * math.pow(E9_C1u[5], p) * math.pow(E9_C1u[1], q)),
      ((weight[5] * weight[2] / (1 - weight[5])) * math.pow(E9_C1u[5], p) * math.pow(E9_C1u[2], q)),
      ((weight[5] * weight[3] / (1 - weight[5])) * math.pow(E9_C1u[5], p) * math.pow(E9_C1u[3], q)),
      ((weight[5] * weight[4] / (1 - weight[5])) * math.pow(E9_C1u[5], p) * math.pow(E9_C1u[4], q)))))

E9_F_SCoB_u7 = sum(
    ((((weight[6] * weight[7] / (1 - weight[6])) * math.pow(E9_C1u[6], p) * math.pow(E9_C1u[7], q)),
      ((weight[6] * weight[0] / (1 - weight[6])) * math.pow(E9_C1u[6], p) * math.pow(E9_C1u[0], q)),
      ((weight[6] * weight[1] / (1 - weight[6])) * math.pow(E9_C1u[6], p) * math.pow(E9_C1u[1], q)),
      ((weight[6] * weight[2] / (1 - weight[6])) * math.pow(E9_C1u[6], p) * math.pow(E9_C1u[2], q)),
      ((weight[6] * weight[3] / (1 - weight[6])) * math.pow(E9_C1u[6], p) * math.pow(E9_C1u[3], q)),
      ((weight[6] * weight[4] / (1 - weight[6])) * math.pow(E9_C1u[6], p) * math.pow(E9_C1u[4], q)),
      ((weight[6] * weight[5] / (1 - weight[6])) * math.pow(E9_C1u[6], p) * math.pow(E9_C1u[5], q)))))

E9_F_SCoB_u8 = sum(
    ((((weight[7] * weight[0] / (1 - weight[7])) * math.pow(E9_C1u[7], p) * math.pow(E9_C1u[0], q)),
      ((weight[7] * weight[1] / (1 - weight[7])) * math.pow(E9_C1u[7], p) * math.pow(E9_C1u[1], q)),
      ((weight[7] * weight[2] / (1 - weight[7])) * math.pow(E9_C1u[7], p) * math.pow(E9_C1u[2], q)),
      ((weight[7] * weight[3] / (1 - weight[7])) * math.pow(E9_C1u[7], p) * math.pow(E9_C1u[3], q)),
      ((weight[7] * weight[4] / (1 - weight[7])) * math.pow(E9_C1u[7], p) * math.pow(E9_C1u[4], q)),
      ((weight[7] * weight[5] / (1 - weight[7])) * math.pow(E9_C1u[7], p) * math.pow(E9_C1u[5], q)),
      ((weight[7] * weight[6] / (1 - weight[7])) * math.pow(E9_C1u[7], p) * math.pow(E9_C1u[6], q)))))
E9_F_SCoB_u = pow(sum(
    (E9_F_SCoB_u1, E9_F_SCoB_u2, E9_F_SCoB_u3, E9_F_SCoB_u4, E9_F_SCoB_u5, E9_F_SCoB_u6, E9_F_SCoB_u7, E9_F_SCoB_u8)),
    a)
# </editor-fold>
# print(E9_F_SCoB_l)
# print(E9_F_SCoB_m)
# print(E9_F_SCoB_u)
E9_SCoB = (E9_F_SCoB_l + 4 * E9_F_SCoB_m + E9_F_SCoB_u) / 6

# <editor-fold desc="E9_F_PCoB_l">
E9_F_PCoB_l1 = numpy.prod((math.pow((p * E9_C1l[0] + q * E9_C1l[1]), (weight[0] * weight[1] / (1 - weight[0]))),
                           math.pow((p * E9_C1l[0] + q * E9_C1l[2]), (weight[0] * weight[2] / (1 - weight[0]))),
                           math.pow((p * E9_C1l[0] + q * E9_C1l[3]), (weight[0] * weight[3] / (1 - weight[0]))),
                           math.pow((p * E9_C1l[0] + q * E9_C1l[4]), (weight[0] * weight[4] / (1 - weight[0]))),
                           math.pow((p * E9_C1l[0] + q * E9_C1l[5]), (weight[0] * weight[5] / (1 - weight[0]))),
                           math.pow((p * E9_C1l[0] + q * E9_C1l[6]), (weight[0] * weight[6] / (1 - weight[0]))),
                           math.pow((p * E9_C1l[0] + q * E9_C1l[7]), (weight[0] * weight[7] / (1 - weight[0])))))

E9_F_PCoB_l2 = numpy.prod((math.pow((p * E9_C1l[1] + q * E9_C1l[2]), (weight[1] * weight[2] / (1 - weight[1]))),
                           math.pow((p * E9_C1l[1] + q * E9_C1l[3]), (weight[1] * weight[3] / (1 - weight[1]))),
                           math.pow((p * E9_C1l[1] + q * E9_C1l[4]), (weight[1] * weight[4] / (1 - weight[1]))),
                           math.pow((p * E9_C1l[1] + q * E9_C1l[5]), (weight[1] * weight[5] / (1 - weight[1]))),
                           math.pow((p * E9_C1l[1] + q * E9_C1l[6]), (weight[1] * weight[6] / (1 - weight[1]))),
                           math.pow((p * E9_C1l[1] + q * E9_C1l[7]), (weight[1] * weight[7] / (1 - weight[1]))),
                           math.pow((p * E9_C1l[1] + q * E9_C1l[0]), (weight[1] * weight[0] / (1 - weight[1])))))

E9_F_PCoB_l3 = numpy.prod((math.pow((p * E9_C1l[2] + q * E9_C1l[3]), (weight[2] * weight[3] / (1 - weight[2]))),
                           math.pow((p * E9_C1l[2] + q * E9_C1l[4]), (weight[2] * weight[4] / (1 - weight[2]))),
                           math.pow((p * E9_C1l[2] + q * E9_C1l[5]), (weight[2] * weight[5] / (1 - weight[2]))),
                           math.pow((p * E9_C1l[2] + q * E9_C1l[6]), (weight[2] * weight[6] / (1 - weight[2]))),
                           math.pow((p * E9_C1l[2] + q * E9_C1l[7]), (weight[2] * weight[7] / (1 - weight[2]))),
                           math.pow((p * E9_C1l[2] + q * E9_C1l[0]), (weight[2] * weight[0] / (1 - weight[2]))),
                           math.pow((p * E9_C1l[2] + q * E9_C1l[1]), (weight[2] * weight[1] / (1 - weight[2])))))

E9_F_PCoB_l4 = numpy.prod((math.pow((p * E9_C1l[3] + q * E9_C1l[4]), (weight[3] * weight[4] / (1 - weight[3]))),
                           math.pow((p * E9_C1l[3] + q * E9_C1l[5]), (weight[3] * weight[5] / (1 - weight[3]))),
                           math.pow((p * E9_C1l[3] + q * E9_C1l[6]), (weight[3] * weight[6] / (1 - weight[3]))),
                           math.pow((p * E9_C1l[3] + q * E9_C1l[7]), (weight[3] * weight[7] / (1 - weight[3]))),
                           math.pow((p * E9_C1l[3] + q * E9_C1l[0]), (weight[3] * weight[0] / (1 - weight[3]))),
                           math.pow((p * E9_C1l[3] + q * E9_C1l[1]), (weight[3] * weight[1] / (1 - weight[3]))),
                           math.pow((p * E9_C1l[3] + q * E9_C1l[2]), (weight[3] * weight[2] / (1 - weight[3])))))

E9_F_PCoB_l5 = numpy.prod((math.pow((p * E9_C1l[4] + q * E9_C1l[5]), (weight[4] * weight[5] / (1 - weight[4]))),
                           math.pow((p * E9_C1l[4] + q * E9_C1l[6]), (weight[4] * weight[6] / (1 - weight[4]))),
                           math.pow((p * E9_C1l[4] + q * E9_C1l[7]), (weight[4] * weight[7] / (1 - weight[4]))),
                           math.pow((p * E9_C1l[4] + q * E9_C1l[0]), (weight[4] * weight[0] / (1 - weight[4]))),
                           math.pow((p * E9_C1l[4] + q * E9_C1l[1]), (weight[4] * weight[1] / (1 - weight[4]))),
                           math.pow((p * E9_C1l[4] + q * E9_C1l[2]), (weight[4] * weight[2] / (1 - weight[4]))),
                           math.pow((p * E9_C1l[4] + q * E9_C1l[3]), (weight[4] * weight[3] / (1 - weight[4])))))

E9_F_PCoB_l6 = numpy.prod((math.pow((p * E9_C1l[5] + q * E9_C1l[6]), (weight[5] * weight[6] / (1 - weight[5]))),
                           math.pow((p * E9_C1l[5] + q * E9_C1l[7]), (weight[5] * weight[7] / (1 - weight[5]))),
                           math.pow((p * E9_C1l[5] + q * E9_C1l[0]), (weight[5] * weight[0] / (1 - weight[5]))),
                           math.pow((p * E9_C1l[5] + q * E9_C1l[1]), (weight[5] * weight[1] / (1 - weight[5]))),
                           math.pow((p * E9_C1l[5] + q * E9_C1l[2]), (weight[5] * weight[2] / (1 - weight[5]))),
                           math.pow((p * E9_C1l[5] + q * E9_C1l[3]), (weight[5] * weight[3] / (1 - weight[5]))),
                           math.pow((p * E9_C1l[5] + q * E9_C1l[4]), (weight[5] * weight[4] / (1 - weight[5])))))

E9_F_PCoB_l7 = numpy.prod((math.pow((p * E9_C1l[6] + q * E9_C1l[7]), (weight[6] * weight[7] / (1 - weight[6]))),
                           math.pow((p * E9_C1l[6] + q * E9_C1l[0]), (weight[6] * weight[0] / (1 - weight[6]))),
                           math.pow((p * E9_C1l[6] + q * E9_C1l[1]), (weight[6] * weight[1] / (1 - weight[6]))),
                           math.pow((p * E9_C1l[6] + q * E9_C1l[2]), (weight[6] * weight[2] / (1 - weight[6]))),
                           math.pow((p * E9_C1l[6] + q * E9_C1l[3]), (weight[6] * weight[3] / (1 - weight[6]))),
                           math.pow((p * E9_C1l[6] + q * E9_C1l[4]), (weight[6] * weight[4] / (1 - weight[6]))),
                           math.pow((p * E9_C1l[6] + q * E9_C1l[5]), (weight[6] * weight[5] / (1 - weight[6])))))

E9_F_PCoB_l8 = numpy.prod((math.pow((p * E9_C1l[7] + q * E9_C1l[0]), (weight[7] * weight[0] / (1 - weight[7]))),
                           math.pow((p * E9_C1l[7] + q * E9_C1l[1]), (weight[7] * weight[1] / (1 - weight[7]))),
                           math.pow((p * E9_C1l[7] + q * E9_C1l[2]), (weight[7] * weight[2] / (1 - weight[7]))),
                           math.pow((p * E9_C1l[7] + q * E9_C1l[3]), (weight[7] * weight[3] / (1 - weight[7]))),
                           math.pow((p * E9_C1l[7] + q * E9_C1l[4]), (weight[7] * weight[4] / (1 - weight[7]))),
                           math.pow((p * E9_C1l[7] + q * E9_C1l[5]), (weight[7] * weight[5] / (1 - weight[7]))),
                           math.pow((p * E9_C1l[7] + q * E9_C1l[6]), (weight[7] * weight[6] / (1 - weight[7])))))
E9_F_PCoB_l = a * numpy.prod(
    (E9_F_PCoB_l1, E9_F_PCoB_l2, E9_F_PCoB_l3, E9_F_PCoB_l4, E9_F_PCoB_l5, E9_F_PCoB_l6, E9_F_PCoB_l7, E9_F_PCoB_l8))
# </editor-fold>
# <editor-fold desc="E9_F_PCoB_m">
E9_F_PCoB_m1 = numpy.prod((math.pow((p * E9_C1m[0] + q * E9_C1m[1]), (weight[0] * weight[1] / (1 - weight[0]))),
                           math.pow((p * E9_C1m[0] + q * E9_C1m[2]), (weight[0] * weight[2] / (1 - weight[0]))),
                           math.pow((p * E9_C1m[0] + q * E9_C1m[3]), (weight[0] * weight[3] / (1 - weight[0]))),
                           math.pow((p * E9_C1m[0] + q * E9_C1m[4]), (weight[0] * weight[4] / (1 - weight[0]))),
                           math.pow((p * E9_C1m[0] + q * E9_C1m[5]), (weight[0] * weight[5] / (1 - weight[0]))),
                           math.pow((p * E9_C1m[0] + q * E9_C1m[6]), (weight[0] * weight[6] / (1 - weight[0]))),
                           math.pow((p * E9_C1m[0] + q * E9_C1m[7]), (weight[0] * weight[7] / (1 - weight[0])))))

E9_F_PCoB_m2 = numpy.prod((math.pow((p * E9_C1m[1] + q * E9_C1m[2]), (weight[1] * weight[2] / (1 - weight[1]))),
                           math.pow((p * E9_C1m[1] + q * E9_C1m[3]), (weight[1] * weight[3] / (1 - weight[1]))),
                           math.pow((p * E9_C1m[1] + q * E9_C1m[4]), (weight[1] * weight[4] / (1 - weight[1]))),
                           math.pow((p * E9_C1m[1] + q * E9_C1m[5]), (weight[1] * weight[5] / (1 - weight[1]))),
                           math.pow((p * E9_C1m[1] + q * E9_C1m[6]), (weight[1] * weight[6] / (1 - weight[1]))),
                           math.pow((p * E9_C1m[1] + q * E9_C1m[7]), (weight[1] * weight[7] / (1 - weight[1]))),
                           math.pow((p * E9_C1m[1] + q * E9_C1m[0]), (weight[1] * weight[0] / (1 - weight[1])))))

E9_F_PCoB_m3 = numpy.prod((math.pow((p * E9_C1m[2] + q * E9_C1m[3]), (weight[2] * weight[3] / (1 - weight[2]))),
                           math.pow((p * E9_C1m[2] + q * E9_C1m[4]), (weight[2] * weight[4] / (1 - weight[2]))),
                           math.pow((p * E9_C1m[2] + q * E9_C1m[5]), (weight[2] * weight[5] / (1 - weight[2]))),
                           math.pow((p * E9_C1m[2] + q * E9_C1m[6]), (weight[2] * weight[6] / (1 - weight[2]))),
                           math.pow((p * E9_C1m[2] + q * E9_C1m[7]), (weight[2] * weight[7] / (1 - weight[2]))),
                           math.pow((p * E9_C1m[2] + q * E9_C1m[0]), (weight[2] * weight[0] / (1 - weight[2]))),
                           math.pow((p * E9_C1m[2] + q * E9_C1m[1]), (weight[2] * weight[1] / (1 - weight[2])))))

E9_F_PCoB_m4 = numpy.prod((math.pow((p * E9_C1m[3] + q * E9_C1m[4]), (weight[3] * weight[4] / (1 - weight[3]))),
                           math.pow((p * E9_C1m[3] + q * E9_C1m[5]), (weight[3] * weight[5] / (1 - weight[3]))),
                           math.pow((p * E9_C1m[3] + q * E9_C1m[6]), (weight[3] * weight[6] / (1 - weight[3]))),
                           math.pow((p * E9_C1m[3] + q * E9_C1m[7]), (weight[3] * weight[7] / (1 - weight[3]))),
                           math.pow((p * E9_C1m[3] + q * E9_C1m[0]), (weight[3] * weight[0] / (1 - weight[3]))),
                           math.pow((p * E9_C1m[3] + q * E9_C1m[1]), (weight[3] * weight[1] / (1 - weight[3]))),
                           math.pow((p * E9_C1m[3] + q * E9_C1m[2]), (weight[3] * weight[2] / (1 - weight[3])))))

E9_F_PCoB_m5 = numpy.prod((math.pow((p * E9_C1m[4] + q * E9_C1m[5]), (weight[4] * weight[5] / (1 - weight[4]))),
                           math.pow((p * E9_C1m[4] + q * E9_C1m[6]), (weight[4] * weight[6] / (1 - weight[4]))),
                           math.pow((p * E9_C1m[4] + q * E9_C1m[7]), (weight[4] * weight[7] / (1 - weight[4]))),
                           math.pow((p * E9_C1m[4] + q * E9_C1m[0]), (weight[4] * weight[0] / (1 - weight[4]))),
                           math.pow((p * E9_C1m[4] + q * E9_C1m[1]), (weight[4] * weight[1] / (1 - weight[4]))),
                           math.pow((p * E9_C1m[4] + q * E9_C1m[2]), (weight[4] * weight[2] / (1 - weight[4]))),
                           math.pow((p * E9_C1m[4] + q * E9_C1m[3]), (weight[4] * weight[3] / (1 - weight[4])))))

E9_F_PCoB_m6 = numpy.prod((math.pow((p * E9_C1m[5] + q * E9_C1m[6]), (weight[5] * weight[6] / (1 - weight[5]))),
                           math.pow((p * E9_C1m[5] + q * E9_C1m[7]), (weight[5] * weight[7] / (1 - weight[5]))),
                           math.pow((p * E9_C1m[5] + q * E9_C1m[0]), (weight[5] * weight[0] / (1 - weight[5]))),
                           math.pow((p * E9_C1m[5] + q * E9_C1m[1]), (weight[5] * weight[1] / (1 - weight[5]))),
                           math.pow((p * E9_C1m[5] + q * E9_C1m[2]), (weight[5] * weight[2] / (1 - weight[5]))),
                           math.pow((p * E9_C1m[5] + q * E9_C1m[3]), (weight[5] * weight[3] / (1 - weight[5]))),
                           math.pow((p * E9_C1m[5] + q * E9_C1m[4]), (weight[5] * weight[4] / (1 - weight[5])))))

E9_F_PCoB_m7 = numpy.prod((math.pow((p * E9_C1m[6] + q * E9_C1m[7]), (weight[6] * weight[7] / (1 - weight[6]))),
                           math.pow((p * E9_C1m[6] + q * E9_C1m[0]), (weight[6] * weight[0] / (1 - weight[6]))),
                           math.pow((p * E9_C1m[6] + q * E9_C1m[1]), (weight[6] * weight[1] / (1 - weight[6]))),
                           math.pow((p * E9_C1m[6] + q * E9_C1m[2]), (weight[6] * weight[2] / (1 - weight[6]))),
                           math.pow((p * E9_C1m[6] + q * E9_C1m[3]), (weight[6] * weight[3] / (1 - weight[6]))),
                           math.pow((p * E9_C1m[6] + q * E9_C1m[4]), (weight[6] * weight[4] / (1 - weight[6]))),
                           math.pow((p * E9_C1m[6] + q * E9_C1m[5]), (weight[6] * weight[5] / (1 - weight[6])))))

E9_F_PCoB_m8 = numpy.prod((math.pow((p * E9_C1m[7] + q * E9_C1m[0]), (weight[7] * weight[0] / (1 - weight[7]))),
                           math.pow((p * E9_C1m[7] + q * E9_C1m[1]), (weight[7] * weight[1] / (1 - weight[7]))),
                           math.pow((p * E9_C1m[7] + q * E9_C1m[2]), (weight[7] * weight[2] / (1 - weight[7]))),
                           math.pow((p * E9_C1m[7] + q * E9_C1m[3]), (weight[7] * weight[3] / (1 - weight[7]))),
                           math.pow((p * E9_C1m[7] + q * E9_C1m[4]), (weight[7] * weight[4] / (1 - weight[7]))),
                           math.pow((p * E9_C1m[7] + q * E9_C1m[5]), (weight[7] * weight[5] / (1 - weight[7]))),
                           math.pow((p * E9_C1m[7] + q * E9_C1m[6]), (weight[7] * weight[6] / (1 - weight[7])))))
E9_F_PCoB_m = a * numpy.prod(
    (E9_F_PCoB_m1, E9_F_PCoB_m2, E9_F_PCoB_m3, E9_F_PCoB_m4, E9_F_PCoB_m5, E9_F_PCoB_m6, E9_F_PCoB_m7, E9_F_PCoB_m8))
# </editor-fold>
# <editor-fold desc="E9_F_PCoB_u">
E9_F_PCoB_u1 = numpy.prod((math.pow((p * E9_C1u[0] + q * E9_C1u[1]), (weight[0] * weight[1] / (1 - weight[0]))),
                           math.pow((p * E9_C1u[0] + q * E9_C1u[2]), (weight[0] * weight[2] / (1 - weight[0]))),
                           math.pow((p * E9_C1u[0] + q * E9_C1u[3]), (weight[0] * weight[3] / (1 - weight[0]))),
                           math.pow((p * E9_C1u[0] + q * E9_C1u[4]), (weight[0] * weight[4] / (1 - weight[0]))),
                           math.pow((p * E9_C1u[0] + q * E9_C1u[5]), (weight[0] * weight[5] / (1 - weight[0]))),
                           math.pow((p * E9_C1u[0] + q * E9_C1u[6]), (weight[0] * weight[6] / (1 - weight[0]))),
                           math.pow((p * E9_C1u[0] + q * E9_C1u[7]), (weight[0] * weight[7] / (1 - weight[0])))))

E9_F_PCoB_u2 = numpy.prod((math.pow((p * E9_C1u[1] + q * E9_C1u[2]), (weight[1] * weight[2] / (1 - weight[1]))),
                           math.pow((p * E9_C1u[1] + q * E9_C1u[3]), (weight[1] * weight[3] / (1 - weight[1]))),
                           math.pow((p * E9_C1u[1] + q * E9_C1u[4]), (weight[1] * weight[4] / (1 - weight[1]))),
                           math.pow((p * E9_C1u[1] + q * E9_C1u[5]), (weight[1] * weight[5] / (1 - weight[1]))),
                           math.pow((p * E9_C1u[1] + q * E9_C1u[6]), (weight[1] * weight[6] / (1 - weight[1]))),
                           math.pow((p * E9_C1u[1] + q * E9_C1u[7]), (weight[1] * weight[7] / (1 - weight[1]))),
                           math.pow((p * E9_C1u[1] + q * E9_C1u[0]), (weight[1] * weight[0] / (1 - weight[1])))))

E9_F_PCoB_u3 = numpy.prod((math.pow((p * E9_C1u[2] + q * E9_C1u[3]), (weight[2] * weight[3] / (1 - weight[2]))),
                           math.pow((p * E9_C1u[2] + q * E9_C1u[4]), (weight[2] * weight[4] / (1 - weight[2]))),
                           math.pow((p * E9_C1u[2] + q * E9_C1u[5]), (weight[2] * weight[5] / (1 - weight[2]))),
                           math.pow((p * E9_C1u[2] + q * E9_C1u[6]), (weight[2] * weight[6] / (1 - weight[2]))),
                           math.pow((p * E9_C1u[2] + q * E9_C1u[7]), (weight[2] * weight[7] / (1 - weight[2]))),
                           math.pow((p * E9_C1u[2] + q * E9_C1u[0]), (weight[2] * weight[0] / (1 - weight[2]))),
                           math.pow((p * E9_C1u[2] + q * E9_C1u[1]), (weight[2] * weight[1] / (1 - weight[2])))))

E9_F_PCoB_u4 = numpy.prod((math.pow((p * E9_C1u[3] + q * E9_C1u[4]), (weight[3] * weight[4] / (1 - weight[3]))),
                           math.pow((p * E9_C1u[3] + q * E9_C1u[5]), (weight[3] * weight[5] / (1 - weight[3]))),
                           math.pow((p * E9_C1u[3] + q * E9_C1u[6]), (weight[3] * weight[6] / (1 - weight[3]))),
                           math.pow((p * E9_C1u[3] + q * E9_C1u[7]), (weight[3] * weight[7] / (1 - weight[3]))),
                           math.pow((p * E9_C1u[3] + q * E9_C1u[0]), (weight[3] * weight[0] / (1 - weight[3]))),
                           math.pow((p * E9_C1u[3] + q * E9_C1u[1]), (weight[3] * weight[1] / (1 - weight[3]))),
                           math.pow((p * E9_C1u[3] + q * E9_C1u[2]), (weight[3] * weight[2] / (1 - weight[3])))))

E9_F_PCoB_u5 = numpy.prod((math.pow((p * E9_C1u[4] + q * E9_C1u[5]), (weight[4] * weight[5] / (1 - weight[4]))),
                           math.pow((p * E9_C1u[4] + q * E9_C1u[6]), (weight[4] * weight[6] / (1 - weight[4]))),
                           math.pow((p * E9_C1u[4] + q * E9_C1u[7]), (weight[4] * weight[7] / (1 - weight[4]))),
                           math.pow((p * E9_C1u[4] + q * E9_C1u[0]), (weight[4] * weight[0] / (1 - weight[4]))),
                           math.pow((p * E9_C1u[4] + q * E9_C1u[1]), (weight[4] * weight[1] / (1 - weight[4]))),
                           math.pow((p * E9_C1u[4] + q * E9_C1u[2]), (weight[4] * weight[2] / (1 - weight[4]))),
                           math.pow((p * E9_C1u[4] + q * E9_C1u[3]), (weight[4] * weight[3] / (1 - weight[4])))))

E9_F_PCoB_u6 = numpy.prod((math.pow((p * E9_C1u[5] + q * E9_C1u[6]), (weight[5] * weight[6] / (1 - weight[5]))),
                           math.pow((p * E9_C1u[5] + q * E9_C1u[7]), (weight[5] * weight[7] / (1 - weight[5]))),
                           math.pow((p * E9_C1u[5] + q * E9_C1u[0]), (weight[5] * weight[0] / (1 - weight[5]))),
                           math.pow((p * E9_C1u[5] + q * E9_C1u[1]), (weight[5] * weight[1] / (1 - weight[5]))),
                           math.pow((p * E9_C1u[5] + q * E9_C1u[2]), (weight[5] * weight[2] / (1 - weight[5]))),
                           math.pow((p * E9_C1u[5] + q * E9_C1u[3]), (weight[5] * weight[3] / (1 - weight[5]))),
                           math.pow((p * E9_C1u[5] + q * E9_C1u[4]), (weight[5] * weight[4] / (1 - weight[5])))))

E9_F_PCoB_u7 = numpy.prod((math.pow((p * E9_C1u[6] + q * E9_C1u[7]), (weight[6] * weight[7] / (1 - weight[6]))),
                           math.pow((p * E9_C1u[6] + q * E9_C1u[0]), (weight[6] * weight[0] / (1 - weight[6]))),
                           math.pow((p * E9_C1u[6] + q * E9_C1u[1]), (weight[6] * weight[1] / (1 - weight[6]))),
                           math.pow((p * E9_C1u[6] + q * E9_C1u[2]), (weight[6] * weight[2] / (1 - weight[6]))),
                           math.pow((p * E9_C1u[6] + q * E9_C1u[3]), (weight[6] * weight[3] / (1 - weight[6]))),
                           math.pow((p * E9_C1u[6] + q * E9_C1u[4]), (weight[6] * weight[4] / (1 - weight[6]))),
                           math.pow((p * E9_C1u[6] + q * E9_C1u[5]), (weight[6] * weight[5] / (1 - weight[6])))))

E9_F_PCoB_u8 = numpy.prod((math.pow((p * E9_C1u[7] + q * E9_C1u[0]), (weight[7] * weight[0] / (1 - weight[7]))),
                           math.pow((p * E9_C1u[7] + q * E9_C1u[1]), (weight[7] * weight[1] / (1 - weight[7]))),
                           math.pow((p * E9_C1u[7] + q * E9_C1u[2]), (weight[7] * weight[2] / (1 - weight[7]))),
                           math.pow((p * E9_C1u[7] + q * E9_C1u[3]), (weight[7] * weight[3] / (1 - weight[7]))),
                           math.pow((p * E9_C1u[7] + q * E9_C1u[4]), (weight[7] * weight[4] / (1 - weight[7]))),
                           math.pow((p * E9_C1u[7] + q * E9_C1u[5]), (weight[7] * weight[5] / (1 - weight[7]))),
                           math.pow((p * E9_C1u[7] + q * E9_C1u[6]), (weight[7] * weight[6] / (1 - weight[7])))))
E9_F_PCoB_u = a * numpy.prod(
    (E9_F_PCoB_u1, E9_F_PCoB_u2, E9_F_PCoB_u3, E9_F_PCoB_u4, E9_F_PCoB_u5, E9_F_PCoB_u6, E9_F_PCoB_u7, E9_F_PCoB_u8))
# </editor-fold>
# print(E9_F_PCoB_l)
# print(E9_F_PCoB_m)
# print(E9_F_PCoB_u)
E9_PCoB = (E9_F_PCoB_l + 4 * E9_F_PCoB_m + E9_F_PCoB_u) / 6

# 10
# <editor-fold desc="E10_F_SCoB_l">
E10_F_SCoB_l1 = sum(
    ((((weight[0] * weight[1] / (1 - weight[0])) * math.pow(E10_C1l[0], p) * math.pow(E10_C1l[1], q)),
      ((weight[0] * weight[2] / (1 - weight[0])) * math.pow(E10_C1l[0], p) * math.pow(E10_C1l[2], q)),
      ((weight[0] * weight[3] / (1 - weight[0])) * math.pow(E10_C1l[0], p) * math.pow(E10_C1l[3], q)),
      ((weight[0] * weight[4] / (1 - weight[0])) * math.pow(E10_C1l[0], p) * math.pow(E10_C1l[4], q)),
      ((weight[0] * weight[5] / (1 - weight[0])) * math.pow(E10_C1l[0], p) * math.pow(E10_C1l[5], q)),
      ((weight[0] * weight[6] / (1 - weight[0])) * math.pow(E10_C1l[0], p) * math.pow(E10_C1l[6], q)),
      ((weight[0] * weight[7] / (1 - weight[0])) * math.pow(E10_C1l[0], p) * math.pow(E10_C1l[2], q)))))

E10_F_SCoB_l2 = sum(
    ((((weight[1] * weight[2] / (1 - weight[1])) * math.pow(E10_C1l[1], p) * math.pow(E10_C1l[2], q)),
      ((weight[1] * weight[3] / (1 - weight[1])) * math.pow(E10_C1l[1], p) * math.pow(E10_C1l[3], q)),
      ((weight[1] * weight[4] / (1 - weight[1])) * math.pow(E10_C1l[1], p) * math.pow(E10_C1l[4], q)),
      ((weight[1] * weight[5] / (1 - weight[1])) * math.pow(E10_C1l[1], p) * math.pow(E10_C1l[5], q)),
      ((weight[1] * weight[6] / (1 - weight[1])) * math.pow(E10_C1l[1], p) * math.pow(E10_C1l[6], q)),
      ((weight[1] * weight[7] / (1 - weight[1])) * math.pow(E10_C1l[1], p) * math.pow(E10_C1l[7], q)),
      ((weight[1] * weight[0] / (1 - weight[1])) * math.pow(E10_C1l[1], p) * math.pow(E10_C1l[0], q)))))

E10_F_SCoB_l3 = sum(
    ((((weight[2] * weight[3] / (1 - weight[2])) * math.pow(E10_C1l[2], p) * math.pow(E10_C1l[3], q)),
      ((weight[2] * weight[4] / (1 - weight[2])) * math.pow(E10_C1l[2], p) * math.pow(E10_C1l[4], q)),
      ((weight[2] * weight[5] / (1 - weight[2])) * math.pow(E10_C1l[2], p) * math.pow(E10_C1l[5], q)),
      ((weight[2] * weight[6] / (1 - weight[2])) * math.pow(E10_C1l[2], p) * math.pow(E10_C1l[6], q)),
      ((weight[2] * weight[7] / (1 - weight[2])) * math.pow(E10_C1l[2], p) * math.pow(E10_C1l[7], q)),
      ((weight[2] * weight[0] / (1 - weight[2])) * math.pow(E10_C1l[2], p) * math.pow(E10_C1l[0], q)),
      ((weight[2] * weight[1] / (1 - weight[2])) * math.pow(E10_C1l[2], p) * math.pow(E10_C1l[1], q)))))

E10_F_SCoB_l4 = sum(
    ((((weight[3] * weight[4] / (1 - weight[3])) * math.pow(E10_C1l[3], p) * math.pow(E10_C1l[4], q)),
      ((weight[3] * weight[5] / (1 - weight[3])) * math.pow(E10_C1l[3], p) * math.pow(E10_C1l[5], q)),
      ((weight[3] * weight[6] / (1 - weight[3])) * math.pow(E10_C1l[3], p) * math.pow(E10_C1l[6], q)),
      ((weight[3] * weight[7] / (1 - weight[3])) * math.pow(E10_C1l[3], p) * math.pow(E10_C1l[7], q)),
      ((weight[3] * weight[0] / (1 - weight[3])) * math.pow(E10_C1l[3], p) * math.pow(E10_C1l[0], q)),
      ((weight[3] * weight[1] / (1 - weight[3])) * math.pow(E10_C1l[3], p) * math.pow(E10_C1l[1], q)),
      ((weight[3] * weight[2] / (1 - weight[3])) * math.pow(E10_C1l[3], p) * math.pow(E10_C1l[2], q)))))

E10_F_SCoB_l5 = sum(
    ((((weight[4] * weight[5] / (1 - weight[4])) * math.pow(E10_C1l[4], p) * math.pow(E10_C1l[5], q)),
      ((weight[4] * weight[6] / (1 - weight[4])) * math.pow(E10_C1l[4], p) * math.pow(E10_C1l[6], q)),
      ((weight[4] * weight[7] / (1 - weight[4])) * math.pow(E10_C1l[4], p) * math.pow(E10_C1l[7], q)),
      ((weight[4] * weight[0] / (1 - weight[4])) * math.pow(E10_C1l[4], p) * math.pow(E10_C1l[0], q)),
      ((weight[4] * weight[1] / (1 - weight[4])) * math.pow(E10_C1l[4], p) * math.pow(E10_C1l[1], q)),
      ((weight[4] * weight[2] / (1 - weight[4])) * math.pow(E10_C1l[4], p) * math.pow(E10_C1l[2], q)),
      ((weight[4] * weight[3] / (1 - weight[4])) * math.pow(E10_C1l[4], p) * math.pow(E10_C1l[3], q)))))

E10_F_SCoB_l6 = sum(
    ((((weight[5] * weight[6] / (1 - weight[5])) * math.pow(E10_C1l[5], p) * math.pow(E10_C1l[6], q)),
      ((weight[5] * weight[7] / (1 - weight[5])) * math.pow(E10_C1l[5], p) * math.pow(E10_C1l[7], q)),
      ((weight[5] * weight[0] / (1 - weight[5])) * math.pow(E10_C1l[5], p) * math.pow(E10_C1l[0], q)),
      ((weight[5] * weight[1] / (1 - weight[5])) * math.pow(E10_C1l[5], p) * math.pow(E10_C1l[1], q)),
      ((weight[5] * weight[2] / (1 - weight[5])) * math.pow(E10_C1l[5], p) * math.pow(E10_C1l[2], q)),
      ((weight[5] * weight[3] / (1 - weight[5])) * math.pow(E10_C1l[5], p) * math.pow(E10_C1l[3], q)),
      ((weight[5] * weight[4] / (1 - weight[5])) * math.pow(E10_C1l[5], p) * math.pow(E10_C1l[4], q)))))

E10_F_SCoB_l7 = sum(
    ((((weight[6] * weight[7] / (1 - weight[6])) * math.pow(E10_C1l[6], p) * math.pow(E10_C1l[7], q)),
      ((weight[6] * weight[0] / (1 - weight[6])) * math.pow(E10_C1l[6], p) * math.pow(E10_C1l[0], q)),
      ((weight[6] * weight[1] / (1 - weight[6])) * math.pow(E10_C1l[6], p) * math.pow(E10_C1l[1], q)),
      ((weight[6] * weight[2] / (1 - weight[6])) * math.pow(E10_C1l[6], p) * math.pow(E10_C1l[2], q)),
      ((weight[6] * weight[3] / (1 - weight[6])) * math.pow(E10_C1l[6], p) * math.pow(E10_C1l[3], q)),
      ((weight[6] * weight[4] / (1 - weight[6])) * math.pow(E10_C1l[6], p) * math.pow(E10_C1l[4], q)),
      ((weight[6] * weight[5] / (1 - weight[6])) * math.pow(E10_C1l[6], p) * math.pow(E10_C1l[5], q)))))

E10_F_SCoB_l8 = sum(
    ((((weight[7] * weight[0] / (1 - weight[7])) * math.pow(E10_C1l[7], p) * math.pow(E10_C1l[0], q)),
      ((weight[7] * weight[1] / (1 - weight[7])) * math.pow(E10_C1l[7], p) * math.pow(E10_C1l[1], q)),
      ((weight[7] * weight[2] / (1 - weight[7])) * math.pow(E10_C1l[7], p) * math.pow(E10_C1l[2], q)),
      ((weight[7] * weight[3] / (1 - weight[7])) * math.pow(E10_C1l[7], p) * math.pow(E10_C1l[3], q)),
      ((weight[7] * weight[4] / (1 - weight[7])) * math.pow(E10_C1l[7], p) * math.pow(E10_C1l[4], q)),
      ((weight[7] * weight[5] / (1 - weight[7])) * math.pow(E10_C1l[7], p) * math.pow(E10_C1l[5], q)),
      ((weight[7] * weight[6] / (1 - weight[7])) * math.pow(E10_C1l[7], p) * math.pow(E10_C1l[6], q)))))
E10_F_SCoB_l = pow(sum(
    (E10_F_SCoB_l1, E10_F_SCoB_l2, E10_F_SCoB_l3, E10_F_SCoB_l4, E10_F_SCoB_l5, E10_F_SCoB_l6, E10_F_SCoB_l7,
     E10_F_SCoB_l8)),
    a)
# </editor-fold>
# <editor-fold desc="E10_F_SCoB_m">
E10_F_SCoB_m1 = sum(
    ((((weight[0] * weight[1] / (1 - weight[0])) * math.pow(E10_C1m[0], p) * math.pow(E10_C1m[1], q)),
      ((weight[0] * weight[2] / (1 - weight[0])) * math.pow(E10_C1m[0], p) * math.pow(E10_C1m[2], q)),
      ((weight[0] * weight[3] / (1 - weight[0])) * math.pow(E10_C1m[0], p) * math.pow(E10_C1m[3], q)),
      ((weight[0] * weight[4] / (1 - weight[0])) * math.pow(E10_C1m[0], p) * math.pow(E10_C1m[4], q)),
      ((weight[0] * weight[5] / (1 - weight[0])) * math.pow(E10_C1m[0], p) * math.pow(E10_C1m[5], q)),
      ((weight[0] * weight[6] / (1 - weight[0])) * math.pow(E10_C1m[0], p) * math.pow(E10_C1m[6], q)),
      ((weight[0] * weight[7] / (1 - weight[0])) * math.pow(E10_C1m[0], p) * math.pow(E10_C1m[2], q)))))

E10_F_SCoB_m2 = sum(
    ((((weight[1] * weight[2] / (1 - weight[1])) * math.pow(E10_C1m[1], p) * math.pow(E10_C1m[2], q)),
      ((weight[1] * weight[3] / (1 - weight[1])) * math.pow(E10_C1m[1], p) * math.pow(E10_C1m[3], q)),
      ((weight[1] * weight[4] / (1 - weight[1])) * math.pow(E10_C1m[1], p) * math.pow(E10_C1m[4], q)),
      ((weight[1] * weight[5] / (1 - weight[1])) * math.pow(E10_C1m[1], p) * math.pow(E10_C1m[5], q)),
      ((weight[1] * weight[6] / (1 - weight[1])) * math.pow(E10_C1m[1], p) * math.pow(E10_C1m[6], q)),
      ((weight[1] * weight[7] / (1 - weight[1])) * math.pow(E10_C1m[1], p) * math.pow(E10_C1m[7], q)),
      ((weight[1] * weight[0] / (1 - weight[1])) * math.pow(E10_C1m[1], p) * math.pow(E10_C1m[0], q)))))

E10_F_SCoB_m3 = sum(
    ((((weight[2] * weight[3] / (1 - weight[2])) * math.pow(E10_C1m[2], p) * math.pow(E10_C1m[3], q)),
      ((weight[2] * weight[4] / (1 - weight[2])) * math.pow(E10_C1m[2], p) * math.pow(E10_C1m[4], q)),
      ((weight[2] * weight[5] / (1 - weight[2])) * math.pow(E10_C1m[2], p) * math.pow(E10_C1m[5], q)),
      ((weight[2] * weight[6] / (1 - weight[2])) * math.pow(E10_C1m[2], p) * math.pow(E10_C1m[6], q)),
      ((weight[2] * weight[7] / (1 - weight[2])) * math.pow(E10_C1m[2], p) * math.pow(E10_C1m[7], q)),
      ((weight[2] * weight[0] / (1 - weight[2])) * math.pow(E10_C1m[2], p) * math.pow(E10_C1m[0], q)),
      ((weight[2] * weight[1] / (1 - weight[2])) * math.pow(E10_C1m[2], p) * math.pow(E10_C1m[1], q)))))

E10_F_SCoB_m4 = sum(
    ((((weight[3] * weight[4] / (1 - weight[3])) * math.pow(E10_C1m[3], p) * math.pow(E10_C1m[4], q)),
      ((weight[3] * weight[5] / (1 - weight[3])) * math.pow(E10_C1m[3], p) * math.pow(E10_C1m[5], q)),
      ((weight[3] * weight[6] / (1 - weight[3])) * math.pow(E10_C1m[3], p) * math.pow(E10_C1m[6], q)),
      ((weight[3] * weight[7] / (1 - weight[3])) * math.pow(E10_C1m[3], p) * math.pow(E10_C1m[7], q)),
      ((weight[3] * weight[0] / (1 - weight[3])) * math.pow(E10_C1m[3], p) * math.pow(E10_C1m[0], q)),
      ((weight[3] * weight[1] / (1 - weight[3])) * math.pow(E10_C1m[3], p) * math.pow(E10_C1m[1], q)),
      ((weight[3] * weight[2] / (1 - weight[3])) * math.pow(E10_C1m[3], p) * math.pow(E10_C1m[2], q)))))

E10_F_SCoB_m5 = sum(
    ((((weight[4] * weight[5] / (1 - weight[4])) * math.pow(E10_C1m[4], p) * math.pow(E10_C1m[5], q)),
      ((weight[4] * weight[6] / (1 - weight[4])) * math.pow(E10_C1m[4], p) * math.pow(E10_C1m[6], q)),
      ((weight[4] * weight[7] / (1 - weight[4])) * math.pow(E10_C1m[4], p) * math.pow(E10_C1m[7], q)),
      ((weight[4] * weight[0] / (1 - weight[4])) * math.pow(E10_C1m[4], p) * math.pow(E10_C1m[0], q)),
      ((weight[4] * weight[1] / (1 - weight[4])) * math.pow(E10_C1m[4], p) * math.pow(E10_C1m[1], q)),
      ((weight[4] * weight[2] / (1 - weight[4])) * math.pow(E10_C1m[4], p) * math.pow(E10_C1m[2], q)),
      ((weight[4] * weight[3] / (1 - weight[4])) * math.pow(E10_C1m[4], p) * math.pow(E10_C1m[3], q)))))

E10_F_SCoB_m6 = sum(
    ((((weight[5] * weight[6] / (1 - weight[5])) * math.pow(E10_C1m[5], p) * math.pow(E10_C1m[6], q)),
      ((weight[5] * weight[7] / (1 - weight[5])) * math.pow(E10_C1m[5], p) * math.pow(E10_C1m[7], q)),
      ((weight[5] * weight[0] / (1 - weight[5])) * math.pow(E10_C1m[5], p) * math.pow(E10_C1m[0], q)),
      ((weight[5] * weight[1] / (1 - weight[5])) * math.pow(E10_C1m[5], p) * math.pow(E10_C1m[1], q)),
      ((weight[5] * weight[2] / (1 - weight[5])) * math.pow(E10_C1m[5], p) * math.pow(E10_C1m[2], q)),
      ((weight[5] * weight[3] / (1 - weight[5])) * math.pow(E10_C1m[5], p) * math.pow(E10_C1m[3], q)),
      ((weight[5] * weight[4] / (1 - weight[5])) * math.pow(E10_C1m[5], p) * math.pow(E10_C1m[4], q)))))

E10_F_SCoB_m7 = sum(
    ((((weight[6] * weight[7] / (1 - weight[6])) * math.pow(E10_C1m[6], p) * math.pow(E10_C1m[7], q)),
      ((weight[6] * weight[0] / (1 - weight[6])) * math.pow(E10_C1m[6], p) * math.pow(E10_C1m[0], q)),
      ((weight[6] * weight[1] / (1 - weight[6])) * math.pow(E10_C1m[6], p) * math.pow(E10_C1m[1], q)),
      ((weight[6] * weight[2] / (1 - weight[6])) * math.pow(E10_C1m[6], p) * math.pow(E10_C1m[2], q)),
      ((weight[6] * weight[3] / (1 - weight[6])) * math.pow(E10_C1m[6], p) * math.pow(E10_C1m[3], q)),
      ((weight[6] * weight[4] / (1 - weight[6])) * math.pow(E10_C1m[6], p) * math.pow(E10_C1m[4], q)),
      ((weight[6] * weight[5] / (1 - weight[6])) * math.pow(E10_C1m[6], p) * math.pow(E10_C1m[5], q)))))

E10_F_SCoB_m8 = sum(
    ((((weight[7] * weight[0] / (1 - weight[7])) * math.pow(E10_C1m[7], p) * math.pow(E10_C1m[0], q)),
      ((weight[7] * weight[1] / (1 - weight[7])) * math.pow(E10_C1m[7], p) * math.pow(E10_C1m[1], q)),
      ((weight[7] * weight[2] / (1 - weight[7])) * math.pow(E10_C1m[7], p) * math.pow(E10_C1m[2], q)),
      ((weight[7] * weight[3] / (1 - weight[7])) * math.pow(E10_C1m[7], p) * math.pow(E10_C1m[3], q)),
      ((weight[7] * weight[4] / (1 - weight[7])) * math.pow(E10_C1m[7], p) * math.pow(E10_C1m[4], q)),
      ((weight[7] * weight[5] / (1 - weight[7])) * math.pow(E10_C1m[7], p) * math.pow(E10_C1m[5], q)),
      ((weight[7] * weight[6] / (1 - weight[7])) * math.pow(E10_C1m[7], p) * math.pow(E10_C1m[6], q)))))
E10_F_SCoB_m = pow(sum(
    (E10_F_SCoB_m1, E10_F_SCoB_m2, E10_F_SCoB_m3, E10_F_SCoB_m4, E10_F_SCoB_m5, E10_F_SCoB_m6, E10_F_SCoB_m7,
     E10_F_SCoB_m8)),
    a)
# </editor-fold>
# <editor-fold desc="E10_F_SCoB_u">
E10_F_SCoB_u1 = sum(
    ((((weight[0] * weight[1] / (1 - weight[0])) * math.pow(E10_C1u[0], p) * math.pow(E10_C1u[1], q)),
      ((weight[0] * weight[2] / (1 - weight[0])) * math.pow(E10_C1u[0], p) * math.pow(E10_C1u[2], q)),
      ((weight[0] * weight[3] / (1 - weight[0])) * math.pow(E10_C1u[0], p) * math.pow(E10_C1u[3], q)),
      ((weight[0] * weight[4] / (1 - weight[0])) * math.pow(E10_C1u[0], p) * math.pow(E10_C1u[4], q)),
      ((weight[0] * weight[5] / (1 - weight[0])) * math.pow(E10_C1u[0], p) * math.pow(E10_C1u[5], q)),
      ((weight[0] * weight[6] / (1 - weight[0])) * math.pow(E10_C1u[0], p) * math.pow(E10_C1u[6], q)),
      ((weight[0] * weight[7] / (1 - weight[0])) * math.pow(E10_C1u[0], p) * math.pow(E10_C1u[2], q)))))

E10_F_SCoB_u2 = sum(
    ((((weight[1] * weight[2] / (1 - weight[1])) * math.pow(E10_C1u[1], p) * math.pow(E10_C1u[2], q)),
      ((weight[1] * weight[3] / (1 - weight[1])) * math.pow(E10_C1u[1], p) * math.pow(E10_C1u[3], q)),
      ((weight[1] * weight[4] / (1 - weight[1])) * math.pow(E10_C1u[1], p) * math.pow(E10_C1u[4], q)),
      ((weight[1] * weight[5] / (1 - weight[1])) * math.pow(E10_C1u[1], p) * math.pow(E10_C1u[5], q)),
      ((weight[1] * weight[6] / (1 - weight[1])) * math.pow(E10_C1u[1], p) * math.pow(E10_C1u[6], q)),
      ((weight[1] * weight[7] / (1 - weight[1])) * math.pow(E10_C1u[1], p) * math.pow(E10_C1u[7], q)),
      ((weight[1] * weight[0] / (1 - weight[1])) * math.pow(E10_C1u[1], p) * math.pow(E10_C1u[0], q)))))

E10_F_SCoB_u3 = sum(
    ((((weight[2] * weight[3] / (1 - weight[2])) * math.pow(E10_C1u[2], p) * math.pow(E10_C1u[3], q)),
      ((weight[2] * weight[4] / (1 - weight[2])) * math.pow(E10_C1u[2], p) * math.pow(E10_C1u[4], q)),
      ((weight[2] * weight[5] / (1 - weight[2])) * math.pow(E10_C1u[2], p) * math.pow(E10_C1u[5], q)),
      ((weight[2] * weight[6] / (1 - weight[2])) * math.pow(E10_C1u[2], p) * math.pow(E10_C1u[6], q)),
      ((weight[2] * weight[7] / (1 - weight[2])) * math.pow(E10_C1u[2], p) * math.pow(E10_C1u[7], q)),
      ((weight[2] * weight[0] / (1 - weight[2])) * math.pow(E10_C1u[2], p) * math.pow(E10_C1u[0], q)),
      ((weight[2] * weight[1] / (1 - weight[2])) * math.pow(E10_C1u[2], p) * math.pow(E10_C1u[1], q)))))

E10_F_SCoB_u4 = sum(
    ((((weight[3] * weight[4] / (1 - weight[3])) * math.pow(E10_C1u[3], p) * math.pow(E10_C1u[4], q)),
      ((weight[3] * weight[5] / (1 - weight[3])) * math.pow(E10_C1u[3], p) * math.pow(E10_C1u[5], q)),
      ((weight[3] * weight[6] / (1 - weight[3])) * math.pow(E10_C1u[3], p) * math.pow(E10_C1u[6], q)),
      ((weight[3] * weight[7] / (1 - weight[3])) * math.pow(E10_C1u[3], p) * math.pow(E10_C1u[7], q)),
      ((weight[3] * weight[0] / (1 - weight[3])) * math.pow(E10_C1u[3], p) * math.pow(E10_C1u[0], q)),
      ((weight[3] * weight[1] / (1 - weight[3])) * math.pow(E10_C1u[3], p) * math.pow(E10_C1u[1], q)),
      ((weight[3] * weight[2] / (1 - weight[3])) * math.pow(E10_C1u[3], p) * math.pow(E10_C1u[2], q)))))

E10_F_SCoB_u5 = sum(
    ((((weight[4] * weight[5] / (1 - weight[4])) * math.pow(E10_C1u[4], p) * math.pow(E10_C1u[5], q)),
      ((weight[4] * weight[6] / (1 - weight[4])) * math.pow(E10_C1u[4], p) * math.pow(E10_C1u[6], q)),
      ((weight[4] * weight[7] / (1 - weight[4])) * math.pow(E10_C1u[4], p) * math.pow(E10_C1u[7], q)),
      ((weight[4] * weight[0] / (1 - weight[4])) * math.pow(E10_C1u[4], p) * math.pow(E10_C1u[0], q)),
      ((weight[4] * weight[1] / (1 - weight[4])) * math.pow(E10_C1u[4], p) * math.pow(E10_C1u[1], q)),
      ((weight[4] * weight[2] / (1 - weight[4])) * math.pow(E10_C1u[4], p) * math.pow(E10_C1u[2], q)),
      ((weight[4] * weight[3] / (1 - weight[4])) * math.pow(E10_C1u[4], p) * math.pow(E10_C1u[3], q)))))

E10_F_SCoB_u6 = sum(
    ((((weight[5] * weight[6] / (1 - weight[5])) * math.pow(E10_C1u[5], p) * math.pow(E10_C1u[6], q)),
      ((weight[5] * weight[7] / (1 - weight[5])) * math.pow(E10_C1u[5], p) * math.pow(E10_C1u[7], q)),
      ((weight[5] * weight[0] / (1 - weight[5])) * math.pow(E10_C1u[5], p) * math.pow(E10_C1u[0], q)),
      ((weight[5] * weight[1] / (1 - weight[5])) * math.pow(E10_C1u[5], p) * math.pow(E10_C1u[1], q)),
      ((weight[5] * weight[2] / (1 - weight[5])) * math.pow(E10_C1u[5], p) * math.pow(E10_C1u[2], q)),
      ((weight[5] * weight[3] / (1 - weight[5])) * math.pow(E10_C1u[5], p) * math.pow(E10_C1u[3], q)),
      ((weight[5] * weight[4] / (1 - weight[5])) * math.pow(E10_C1u[5], p) * math.pow(E10_C1u[4], q)))))

E10_F_SCoB_u7 = sum(
    ((((weight[6] * weight[7] / (1 - weight[6])) * math.pow(E10_C1u[6], p) * math.pow(E10_C1u[7], q)),
      ((weight[6] * weight[0] / (1 - weight[6])) * math.pow(E10_C1u[6], p) * math.pow(E10_C1u[0], q)),
      ((weight[6] * weight[1] / (1 - weight[6])) * math.pow(E10_C1u[6], p) * math.pow(E10_C1u[1], q)),
      ((weight[6] * weight[2] / (1 - weight[6])) * math.pow(E10_C1u[6], p) * math.pow(E10_C1u[2], q)),
      ((weight[6] * weight[3] / (1 - weight[6])) * math.pow(E10_C1u[6], p) * math.pow(E10_C1u[3], q)),
      ((weight[6] * weight[4] / (1 - weight[6])) * math.pow(E10_C1u[6], p) * math.pow(E10_C1u[4], q)),
      ((weight[6] * weight[5] / (1 - weight[6])) * math.pow(E10_C1u[6], p) * math.pow(E10_C1u[5], q)))))

E10_F_SCoB_u8 = sum(
    ((((weight[7] * weight[0] / (1 - weight[7])) * math.pow(E10_C1u[7], p) * math.pow(E10_C1u[0], q)),
      ((weight[7] * weight[1] / (1 - weight[7])) * math.pow(E10_C1u[7], p) * math.pow(E10_C1u[1], q)),
      ((weight[7] * weight[2] / (1 - weight[7])) * math.pow(E10_C1u[7], p) * math.pow(E10_C1u[2], q)),
      ((weight[7] * weight[3] / (1 - weight[7])) * math.pow(E10_C1u[7], p) * math.pow(E10_C1u[3], q)),
      ((weight[7] * weight[4] / (1 - weight[7])) * math.pow(E10_C1u[7], p) * math.pow(E10_C1u[4], q)),
      ((weight[7] * weight[5] / (1 - weight[7])) * math.pow(E10_C1u[7], p) * math.pow(E10_C1u[5], q)),
      ((weight[7] * weight[6] / (1 - weight[7])) * math.pow(E10_C1u[7], p) * math.pow(E10_C1u[6], q)))))
E10_F_SCoB_u = pow(sum(
    (E10_F_SCoB_u1, E10_F_SCoB_u2, E10_F_SCoB_u3, E10_F_SCoB_u4, E10_F_SCoB_u5, E10_F_SCoB_u6, E10_F_SCoB_u7,
     E10_F_SCoB_u8)),
    a)
# </editor-fold>
# print(E10_F_SCoB_l)
# print(E10_F_SCoB_m)
# print(E10_F_SCoB_u)
E10_SCoB = (E10_F_SCoB_l + 4 * E10_F_SCoB_m + E10_F_SCoB_u) / 6

# <editor-fold desc="E10_F_PCoB_l">
E10_F_PCoB_l1 = numpy.prod((math.pow((p * E10_C1l[0] + q * E10_C1l[1]), (weight[0] * weight[1] / (1 - weight[0]))),
                            math.pow((p * E10_C1l[0] + q * E10_C1l[2]), (weight[0] * weight[2] / (1 - weight[0]))),
                            math.pow((p * E10_C1l[0] + q * E10_C1l[3]), (weight[0] * weight[3] / (1 - weight[0]))),
                            math.pow((p * E10_C1l[0] + q * E10_C1l[4]), (weight[0] * weight[4] / (1 - weight[0]))),
                            math.pow((p * E10_C1l[0] + q * E10_C1l[5]), (weight[0] * weight[5] / (1 - weight[0]))),
                            math.pow((p * E10_C1l[0] + q * E10_C1l[6]), (weight[0] * weight[6] / (1 - weight[0]))),
                            math.pow((p * E10_C1l[0] + q * E10_C1l[7]), (weight[0] * weight[7] / (1 - weight[0])))))

E10_F_PCoB_l2 = numpy.prod((math.pow((p * E10_C1l[1] + q * E10_C1l[2]), (weight[1] * weight[2] / (1 - weight[1]))),
                            math.pow((p * E10_C1l[1] + q * E10_C1l[3]), (weight[1] * weight[3] / (1 - weight[1]))),
                            math.pow((p * E10_C1l[1] + q * E10_C1l[4]), (weight[1] * weight[4] / (1 - weight[1]))),
                            math.pow((p * E10_C1l[1] + q * E10_C1l[5]), (weight[1] * weight[5] / (1 - weight[1]))),
                            math.pow((p * E10_C1l[1] + q * E10_C1l[6]), (weight[1] * weight[6] / (1 - weight[1]))),
                            math.pow((p * E10_C1l[1] + q * E10_C1l[7]), (weight[1] * weight[7] / (1 - weight[1]))),
                            math.pow((p * E10_C1l[1] + q * E10_C1l[0]), (weight[1] * weight[0] / (1 - weight[1])))))

E10_F_PCoB_l3 = numpy.prod((math.pow((p * E10_C1l[2] + q * E10_C1l[3]), (weight[2] * weight[3] / (1 - weight[2]))),
                            math.pow((p * E10_C1l[2] + q * E10_C1l[4]), (weight[2] * weight[4] / (1 - weight[2]))),
                            math.pow((p * E10_C1l[2] + q * E10_C1l[5]), (weight[2] * weight[5] / (1 - weight[2]))),
                            math.pow((p * E10_C1l[2] + q * E10_C1l[6]), (weight[2] * weight[6] / (1 - weight[2]))),
                            math.pow((p * E10_C1l[2] + q * E10_C1l[7]), (weight[2] * weight[7] / (1 - weight[2]))),
                            math.pow((p * E10_C1l[2] + q * E10_C1l[0]), (weight[2] * weight[0] / (1 - weight[2]))),
                            math.pow((p * E10_C1l[2] + q * E10_C1l[1]), (weight[2] * weight[1] / (1 - weight[2])))))

E10_F_PCoB_l4 = numpy.prod((math.pow((p * E10_C1l[3] + q * E10_C1l[4]), (weight[3] * weight[4] / (1 - weight[3]))),
                            math.pow((p * E10_C1l[3] + q * E10_C1l[5]), (weight[3] * weight[5] / (1 - weight[3]))),
                            math.pow((p * E10_C1l[3] + q * E10_C1l[6]), (weight[3] * weight[6] / (1 - weight[3]))),
                            math.pow((p * E10_C1l[3] + q * E10_C1l[7]), (weight[3] * weight[7] / (1 - weight[3]))),
                            math.pow((p * E10_C1l[3] + q * E10_C1l[0]), (weight[3] * weight[0] / (1 - weight[3]))),
                            math.pow((p * E10_C1l[3] + q * E10_C1l[1]), (weight[3] * weight[1] / (1 - weight[3]))),
                            math.pow((p * E10_C1l[3] + q * E10_C1l[2]), (weight[3] * weight[2] / (1 - weight[3])))))

E10_F_PCoB_l5 = numpy.prod((math.pow((p * E10_C1l[4] + q * E10_C1l[5]), (weight[4] * weight[5] / (1 - weight[4]))),
                            math.pow((p * E10_C1l[4] + q * E10_C1l[6]), (weight[4] * weight[6] / (1 - weight[4]))),
                            math.pow((p * E10_C1l[4] + q * E10_C1l[7]), (weight[4] * weight[7] / (1 - weight[4]))),
                            math.pow((p * E10_C1l[4] + q * E10_C1l[0]), (weight[4] * weight[0] / (1 - weight[4]))),
                            math.pow((p * E10_C1l[4] + q * E10_C1l[1]), (weight[4] * weight[1] / (1 - weight[4]))),
                            math.pow((p * E10_C1l[4] + q * E10_C1l[2]), (weight[4] * weight[2] / (1 - weight[4]))),
                            math.pow((p * E10_C1l[4] + q * E10_C1l[3]), (weight[4] * weight[3] / (1 - weight[4])))))

E10_F_PCoB_l6 = numpy.prod((math.pow((p * E10_C1l[5] + q * E10_C1l[6]), (weight[5] * weight[6] / (1 - weight[5]))),
                            math.pow((p * E10_C1l[5] + q * E10_C1l[7]), (weight[5] * weight[7] / (1 - weight[5]))),
                            math.pow((p * E10_C1l[5] + q * E10_C1l[0]), (weight[5] * weight[0] / (1 - weight[5]))),
                            math.pow((p * E10_C1l[5] + q * E10_C1l[1]), (weight[5] * weight[1] / (1 - weight[5]))),
                            math.pow((p * E10_C1l[5] + q * E10_C1l[2]), (weight[5] * weight[2] / (1 - weight[5]))),
                            math.pow((p * E10_C1l[5] + q * E10_C1l[3]), (weight[5] * weight[3] / (1 - weight[5]))),
                            math.pow((p * E10_C1l[5] + q * E10_C1l[4]), (weight[5] * weight[4] / (1 - weight[5])))))

E10_F_PCoB_l7 = numpy.prod((math.pow((p * E10_C1l[6] + q * E10_C1l[7]), (weight[6] * weight[7] / (1 - weight[6]))),
                            math.pow((p * E10_C1l[6] + q * E10_C1l[0]), (weight[6] * weight[0] / (1 - weight[6]))),
                            math.pow((p * E10_C1l[6] + q * E10_C1l[1]), (weight[6] * weight[1] / (1 - weight[6]))),
                            math.pow((p * E10_C1l[6] + q * E10_C1l[2]), (weight[6] * weight[2] / (1 - weight[6]))),
                            math.pow((p * E10_C1l[6] + q * E10_C1l[3]), (weight[6] * weight[3] / (1 - weight[6]))),
                            math.pow((p * E10_C1l[6] + q * E10_C1l[4]), (weight[6] * weight[4] / (1 - weight[6]))),
                            math.pow((p * E10_C1l[6] + q * E10_C1l[5]), (weight[6] * weight[5] / (1 - weight[6])))))

E10_F_PCoB_l8 = numpy.prod((math.pow((p * E10_C1l[7] + q * E10_C1l[0]), (weight[7] * weight[0] / (1 - weight[7]))),
                            math.pow((p * E10_C1l[7] + q * E10_C1l[1]), (weight[7] * weight[1] / (1 - weight[7]))),
                            math.pow((p * E10_C1l[7] + q * E10_C1l[2]), (weight[7] * weight[2] / (1 - weight[7]))),
                            math.pow((p * E10_C1l[7] + q * E10_C1l[3]), (weight[7] * weight[3] / (1 - weight[7]))),
                            math.pow((p * E10_C1l[7] + q * E10_C1l[4]), (weight[7] * weight[4] / (1 - weight[7]))),
                            math.pow((p * E10_C1l[7] + q * E10_C1l[5]), (weight[7] * weight[5] / (1 - weight[7]))),
                            math.pow((p * E10_C1l[7] + q * E10_C1l[6]), (weight[7] * weight[6] / (1 - weight[7])))))
E10_F_PCoB_l = a * numpy.prod(
    (E10_F_PCoB_l1, E10_F_PCoB_l2, E10_F_PCoB_l3, E10_F_PCoB_l4, E10_F_PCoB_l5, E10_F_PCoB_l6, E10_F_PCoB_l7,
     E10_F_PCoB_l8))
# </editor-fold>
# <editor-fold desc="E10_F_PCoB_m">
E10_F_PCoB_m1 = numpy.prod((math.pow((p * E10_C1m[0] + q * E10_C1m[1]), (weight[0] * weight[1] / (1 - weight[0]))),
                            math.pow((p * E10_C1m[0] + q * E10_C1m[2]), (weight[0] * weight[2] / (1 - weight[0]))),
                            math.pow((p * E10_C1m[0] + q * E10_C1m[3]), (weight[0] * weight[3] / (1 - weight[0]))),
                            math.pow((p * E10_C1m[0] + q * E10_C1m[4]), (weight[0] * weight[4] / (1 - weight[0]))),
                            math.pow((p * E10_C1m[0] + q * E10_C1m[5]), (weight[0] * weight[5] / (1 - weight[0]))),
                            math.pow((p * E10_C1m[0] + q * E10_C1m[6]), (weight[0] * weight[6] / (1 - weight[0]))),
                            math.pow((p * E10_C1m[0] + q * E10_C1m[7]), (weight[0] * weight[7] / (1 - weight[0])))))

E10_F_PCoB_m2 = numpy.prod((math.pow((p * E10_C1m[1] + q * E10_C1m[2]), (weight[1] * weight[2] / (1 - weight[1]))),
                            math.pow((p * E10_C1m[1] + q * E10_C1m[3]), (weight[1] * weight[3] / (1 - weight[1]))),
                            math.pow((p * E10_C1m[1] + q * E10_C1m[4]), (weight[1] * weight[4] / (1 - weight[1]))),
                            math.pow((p * E10_C1m[1] + q * E10_C1m[5]), (weight[1] * weight[5] / (1 - weight[1]))),
                            math.pow((p * E10_C1m[1] + q * E10_C1m[6]), (weight[1] * weight[6] / (1 - weight[1]))),
                            math.pow((p * E10_C1m[1] + q * E10_C1m[7]), (weight[1] * weight[7] / (1 - weight[1]))),
                            math.pow((p * E10_C1m[1] + q * E10_C1m[0]), (weight[1] * weight[0] / (1 - weight[1])))))

E10_F_PCoB_m3 = numpy.prod((math.pow((p * E10_C1m[2] + q * E10_C1m[3]), (weight[2] * weight[3] / (1 - weight[2]))),
                            math.pow((p * E10_C1m[2] + q * E10_C1m[4]), (weight[2] * weight[4] / (1 - weight[2]))),
                            math.pow((p * E10_C1m[2] + q * E10_C1m[5]), (weight[2] * weight[5] / (1 - weight[2]))),
                            math.pow((p * E10_C1m[2] + q * E10_C1m[6]), (weight[2] * weight[6] / (1 - weight[2]))),
                            math.pow((p * E10_C1m[2] + q * E10_C1m[7]), (weight[2] * weight[7] / (1 - weight[2]))),
                            math.pow((p * E10_C1m[2] + q * E10_C1m[0]), (weight[2] * weight[0] / (1 - weight[2]))),
                            math.pow((p * E10_C1m[2] + q * E10_C1m[1]), (weight[2] * weight[1] / (1 - weight[2])))))

E10_F_PCoB_m4 = numpy.prod((math.pow((p * E10_C1m[3] + q * E10_C1m[4]), (weight[3] * weight[4] / (1 - weight[3]))),
                            math.pow((p * E10_C1m[3] + q * E10_C1m[5]), (weight[3] * weight[5] / (1 - weight[3]))),
                            math.pow((p * E10_C1m[3] + q * E10_C1m[6]), (weight[3] * weight[6] / (1 - weight[3]))),
                            math.pow((p * E10_C1m[3] + q * E10_C1m[7]), (weight[3] * weight[7] / (1 - weight[3]))),
                            math.pow((p * E10_C1m[3] + q * E10_C1m[0]), (weight[3] * weight[0] / (1 - weight[3]))),
                            math.pow((p * E10_C1m[3] + q * E10_C1m[1]), (weight[3] * weight[1] / (1 - weight[3]))),
                            math.pow((p * E10_C1m[3] + q * E10_C1m[2]), (weight[3] * weight[2] / (1 - weight[3])))))

E10_F_PCoB_m5 = numpy.prod((math.pow((p * E10_C1m[4] + q * E10_C1m[5]), (weight[4] * weight[5] / (1 - weight[4]))),
                            math.pow((p * E10_C1m[4] + q * E10_C1m[6]), (weight[4] * weight[6] / (1 - weight[4]))),
                            math.pow((p * E10_C1m[4] + q * E10_C1m[7]), (weight[4] * weight[7] / (1 - weight[4]))),
                            math.pow((p * E10_C1m[4] + q * E10_C1m[0]), (weight[4] * weight[0] / (1 - weight[4]))),
                            math.pow((p * E10_C1m[4] + q * E10_C1m[1]), (weight[4] * weight[1] / (1 - weight[4]))),
                            math.pow((p * E10_C1m[4] + q * E10_C1m[2]), (weight[4] * weight[2] / (1 - weight[4]))),
                            math.pow((p * E10_C1m[4] + q * E10_C1m[3]), (weight[4] * weight[3] / (1 - weight[4])))))

E10_F_PCoB_m6 = numpy.prod((math.pow((p * E10_C1m[5] + q * E10_C1m[6]), (weight[5] * weight[6] / (1 - weight[5]))),
                            math.pow((p * E10_C1m[5] + q * E10_C1m[7]), (weight[5] * weight[7] / (1 - weight[5]))),
                            math.pow((p * E10_C1m[5] + q * E10_C1m[0]), (weight[5] * weight[0] / (1 - weight[5]))),
                            math.pow((p * E10_C1m[5] + q * E10_C1m[1]), (weight[5] * weight[1] / (1 - weight[5]))),
                            math.pow((p * E10_C1m[5] + q * E10_C1m[2]), (weight[5] * weight[2] / (1 - weight[5]))),
                            math.pow((p * E10_C1m[5] + q * E10_C1m[3]), (weight[5] * weight[3] / (1 - weight[5]))),
                            math.pow((p * E10_C1m[5] + q * E10_C1m[4]), (weight[5] * weight[4] / (1 - weight[5])))))

E10_F_PCoB_m7 = numpy.prod((math.pow((p * E10_C1m[6] + q * E10_C1m[7]), (weight[6] * weight[7] / (1 - weight[6]))),
                            math.pow((p * E10_C1m[6] + q * E10_C1m[0]), (weight[6] * weight[0] / (1 - weight[6]))),
                            math.pow((p * E10_C1m[6] + q * E10_C1m[1]), (weight[6] * weight[1] / (1 - weight[6]))),
                            math.pow((p * E10_C1m[6] + q * E10_C1m[2]), (weight[6] * weight[2] / (1 - weight[6]))),
                            math.pow((p * E10_C1m[6] + q * E10_C1m[3]), (weight[6] * weight[3] / (1 - weight[6]))),
                            math.pow((p * E10_C1m[6] + q * E10_C1m[4]), (weight[6] * weight[4] / (1 - weight[6]))),
                            math.pow((p * E10_C1m[6] + q * E10_C1m[5]), (weight[6] * weight[5] / (1 - weight[6])))))

E10_F_PCoB_m8 = numpy.prod((math.pow((p * E10_C1m[7] + q * E10_C1m[0]), (weight[7] * weight[0] / (1 - weight[7]))),
                            math.pow((p * E10_C1m[7] + q * E10_C1m[1]), (weight[7] * weight[1] / (1 - weight[7]))),
                            math.pow((p * E10_C1m[7] + q * E10_C1m[2]), (weight[7] * weight[2] / (1 - weight[7]))),
                            math.pow((p * E10_C1m[7] + q * E10_C1m[3]), (weight[7] * weight[3] / (1 - weight[7]))),
                            math.pow((p * E10_C1m[7] + q * E10_C1m[4]), (weight[7] * weight[4] / (1 - weight[7]))),
                            math.pow((p * E10_C1m[7] + q * E10_C1m[5]), (weight[7] * weight[5] / (1 - weight[7]))),
                            math.pow((p * E10_C1m[7] + q * E10_C1m[6]), (weight[7] * weight[6] / (1 - weight[7])))))
E10_F_PCoB_m = a * numpy.prod(
    (E10_F_PCoB_m1, E10_F_PCoB_m2, E10_F_PCoB_m3, E10_F_PCoB_m4, E10_F_PCoB_m5, E10_F_PCoB_m6, E10_F_PCoB_m7,
     E10_F_PCoB_m8))
# </editor-fold>
# <editor-fold desc="E10_F_PCoB_u">
E10_F_PCoB_u1 = numpy.prod((math.pow((p * E10_C1u[0] + q * E10_C1u[1]), (weight[0] * weight[1] / (1 - weight[0]))),
                            math.pow((p * E10_C1u[0] + q * E10_C1u[2]), (weight[0] * weight[2] / (1 - weight[0]))),
                            math.pow((p * E10_C1u[0] + q * E10_C1u[3]), (weight[0] * weight[3] / (1 - weight[0]))),
                            math.pow((p * E10_C1u[0] + q * E10_C1u[4]), (weight[0] * weight[4] / (1 - weight[0]))),
                            math.pow((p * E10_C1u[0] + q * E10_C1u[5]), (weight[0] * weight[5] / (1 - weight[0]))),
                            math.pow((p * E10_C1u[0] + q * E10_C1u[6]), (weight[0] * weight[6] / (1 - weight[0]))),
                            math.pow((p * E10_C1u[0] + q * E10_C1u[7]), (weight[0] * weight[7] / (1 - weight[0])))))

E10_F_PCoB_u2 = numpy.prod((math.pow((p * E10_C1u[1] + q * E10_C1u[2]), (weight[1] * weight[2] / (1 - weight[1]))),
                            math.pow((p * E10_C1u[1] + q * E10_C1u[3]), (weight[1] * weight[3] / (1 - weight[1]))),
                            math.pow((p * E10_C1u[1] + q * E10_C1u[4]), (weight[1] * weight[4] / (1 - weight[1]))),
                            math.pow((p * E10_C1u[1] + q * E10_C1u[5]), (weight[1] * weight[5] / (1 - weight[1]))),
                            math.pow((p * E10_C1u[1] + q * E10_C1u[6]), (weight[1] * weight[6] / (1 - weight[1]))),
                            math.pow((p * E10_C1u[1] + q * E10_C1u[7]), (weight[1] * weight[7] / (1 - weight[1]))),
                            math.pow((p * E10_C1u[1] + q * E10_C1u[0]), (weight[1] * weight[0] / (1 - weight[1])))))

E10_F_PCoB_u3 = numpy.prod((math.pow((p * E10_C1u[2] + q * E10_C1u[3]), (weight[2] * weight[3] / (1 - weight[2]))),
                            math.pow((p * E10_C1u[2] + q * E10_C1u[4]), (weight[2] * weight[4] / (1 - weight[2]))),
                            math.pow((p * E10_C1u[2] + q * E10_C1u[5]), (weight[2] * weight[5] / (1 - weight[2]))),
                            math.pow((p * E10_C1u[2] + q * E10_C1u[6]), (weight[2] * weight[6] / (1 - weight[2]))),
                            math.pow((p * E10_C1u[2] + q * E10_C1u[7]), (weight[2] * weight[7] / (1 - weight[2]))),
                            math.pow((p * E10_C1u[2] + q * E10_C1u[0]), (weight[2] * weight[0] / (1 - weight[2]))),
                            math.pow((p * E10_C1u[2] + q * E10_C1u[1]), (weight[2] * weight[1] / (1 - weight[2])))))

E10_F_PCoB_u4 = numpy.prod((math.pow((p * E10_C1u[3] + q * E10_C1u[4]), (weight[3] * weight[4] / (1 - weight[3]))),
                            math.pow((p * E10_C1u[3] + q * E10_C1u[5]), (weight[3] * weight[5] / (1 - weight[3]))),
                            math.pow((p * E10_C1u[3] + q * E10_C1u[6]), (weight[3] * weight[6] / (1 - weight[3]))),
                            math.pow((p * E10_C1u[3] + q * E10_C1u[7]), (weight[3] * weight[7] / (1 - weight[3]))),
                            math.pow((p * E10_C1u[3] + q * E10_C1u[0]), (weight[3] * weight[0] / (1 - weight[3]))),
                            math.pow((p * E10_C1u[3] + q * E10_C1u[1]), (weight[3] * weight[1] / (1 - weight[3]))),
                            math.pow((p * E10_C1u[3] + q * E10_C1u[2]), (weight[3] * weight[2] / (1 - weight[3])))))

E10_F_PCoB_u5 = numpy.prod((math.pow((p * E10_C1u[4] + q * E10_C1u[5]), (weight[4] * weight[5] / (1 - weight[4]))),
                            math.pow((p * E10_C1u[4] + q * E10_C1u[6]), (weight[4] * weight[6] / (1 - weight[4]))),
                            math.pow((p * E10_C1u[4] + q * E10_C1u[7]), (weight[4] * weight[7] / (1 - weight[4]))),
                            math.pow((p * E10_C1u[4] + q * E10_C1u[0]), (weight[4] * weight[0] / (1 - weight[4]))),
                            math.pow((p * E10_C1u[4] + q * E10_C1u[1]), (weight[4] * weight[1] / (1 - weight[4]))),
                            math.pow((p * E10_C1u[4] + q * E10_C1u[2]), (weight[4] * weight[2] / (1 - weight[4]))),
                            math.pow((p * E10_C1u[4] + q * E10_C1u[3]), (weight[4] * weight[3] / (1 - weight[4])))))

E10_F_PCoB_u6 = numpy.prod((math.pow((p * E10_C1u[5] + q * E10_C1u[6]), (weight[5] * weight[6] / (1 - weight[5]))),
                            math.pow((p * E10_C1u[5] + q * E10_C1u[7]), (weight[5] * weight[7] / (1 - weight[5]))),
                            math.pow((p * E10_C1u[5] + q * E10_C1u[0]), (weight[5] * weight[0] / (1 - weight[5]))),
                            math.pow((p * E10_C1u[5] + q * E10_C1u[1]), (weight[5] * weight[1] / (1 - weight[5]))),
                            math.pow((p * E10_C1u[5] + q * E10_C1u[2]), (weight[5] * weight[2] / (1 - weight[5]))),
                            math.pow((p * E10_C1u[5] + q * E10_C1u[3]), (weight[5] * weight[3] / (1 - weight[5]))),
                            math.pow((p * E10_C1u[5] + q * E10_C1u[4]), (weight[5] * weight[4] / (1 - weight[5])))))

E10_F_PCoB_u7 = numpy.prod((math.pow((p * E10_C1u[6] + q * E10_C1u[7]), (weight[6] * weight[7] / (1 - weight[6]))),
                            math.pow((p * E10_C1u[6] + q * E10_C1u[0]), (weight[6] * weight[0] / (1 - weight[6]))),
                            math.pow((p * E10_C1u[6] + q * E10_C1u[1]), (weight[6] * weight[1] / (1 - weight[6]))),
                            math.pow((p * E10_C1u[6] + q * E10_C1u[2]), (weight[6] * weight[2] / (1 - weight[6]))),
                            math.pow((p * E10_C1u[6] + q * E10_C1u[3]), (weight[6] * weight[3] / (1 - weight[6]))),
                            math.pow((p * E10_C1u[6] + q * E10_C1u[4]), (weight[6] * weight[4] / (1 - weight[6]))),
                            math.pow((p * E10_C1u[6] + q * E10_C1u[5]), (weight[6] * weight[5] / (1 - weight[6])))))

E10_F_PCoB_u8 = numpy.prod((math.pow((p * E10_C1u[7] + q * E10_C1u[0]), (weight[7] * weight[0] / (1 - weight[7]))),
                            math.pow((p * E10_C1u[7] + q * E10_C1u[1]), (weight[7] * weight[1] / (1 - weight[7]))),
                            math.pow((p * E10_C1u[7] + q * E10_C1u[2]), (weight[7] * weight[2] / (1 - weight[7]))),
                            math.pow((p * E10_C1u[7] + q * E10_C1u[3]), (weight[7] * weight[3] / (1 - weight[7]))),
                            math.pow((p * E10_C1u[7] + q * E10_C1u[4]), (weight[7] * weight[4] / (1 - weight[7]))),
                            math.pow((p * E10_C1u[7] + q * E10_C1u[5]), (weight[7] * weight[5] / (1 - weight[7]))),
                            math.pow((p * E10_C1u[7] + q * E10_C1u[6]), (weight[7] * weight[6] / (1 - weight[7])))))
E10_F_PCoB_u = a * numpy.prod(
    (E10_F_PCoB_u1, E10_F_PCoB_u2, E10_F_PCoB_u3, E10_F_PCoB_u4, E10_F_PCoB_u5, E10_F_PCoB_u6, E10_F_PCoB_u7,
     E10_F_PCoB_u8))
# </editor-fold>
# print(E10_F_PCoB_l)
# print(E10_F_PCoB_m)
# print(E10_F_PCoB_u)
E10_PCoB = (E10_F_PCoB_l + 4 * E10_F_PCoB_m + E10_F_PCoB_u) / 6

# E11
# <editor-fold desc="E11_F_SCoB_l">
E11_F_SCoB_l1 = sum(
    ((((weight[0] * weight[1] / (1 - weight[0])) * math.pow(E11_C1l[0], p) * math.pow(E11_C1l[1], q)),
      ((weight[0] * weight[2] / (1 - weight[0])) * math.pow(E11_C1l[0], p) * math.pow(E11_C1l[2], q)),
      ((weight[0] * weight[3] / (1 - weight[0])) * math.pow(E11_C1l[0], p) * math.pow(E11_C1l[3], q)),
      ((weight[0] * weight[4] / (1 - weight[0])) * math.pow(E11_C1l[0], p) * math.pow(E11_C1l[4], q)),
      ((weight[0] * weight[5] / (1 - weight[0])) * math.pow(E11_C1l[0], p) * math.pow(E11_C1l[5], q)),
      ((weight[0] * weight[6] / (1 - weight[0])) * math.pow(E11_C1l[0], p) * math.pow(E11_C1l[6], q)),
      ((weight[0] * weight[7] / (1 - weight[0])) * math.pow(E11_C1l[0], p) * math.pow(E11_C1l[2], q)))))

E11_F_SCoB_l2 = sum(
    ((((weight[1] * weight[2] / (1 - weight[1])) * math.pow(E11_C1l[1], p) * math.pow(E11_C1l[2], q)),
      ((weight[1] * weight[3] / (1 - weight[1])) * math.pow(E11_C1l[1], p) * math.pow(E11_C1l[3], q)),
      ((weight[1] * weight[4] / (1 - weight[1])) * math.pow(E11_C1l[1], p) * math.pow(E11_C1l[4], q)),
      ((weight[1] * weight[5] / (1 - weight[1])) * math.pow(E11_C1l[1], p) * math.pow(E11_C1l[5], q)),
      ((weight[1] * weight[6] / (1 - weight[1])) * math.pow(E11_C1l[1], p) * math.pow(E11_C1l[6], q)),
      ((weight[1] * weight[7] / (1 - weight[1])) * math.pow(E11_C1l[1], p) * math.pow(E11_C1l[7], q)),
      ((weight[1] * weight[0] / (1 - weight[1])) * math.pow(E11_C1l[1], p) * math.pow(E11_C1l[0], q)))))

E11_F_SCoB_l3 = sum(
    ((((weight[2] * weight[3] / (1 - weight[2])) * math.pow(E11_C1l[2], p) * math.pow(E11_C1l[3], q)),
      ((weight[2] * weight[4] / (1 - weight[2])) * math.pow(E11_C1l[2], p) * math.pow(E11_C1l[4], q)),
      ((weight[2] * weight[5] / (1 - weight[2])) * math.pow(E11_C1l[2], p) * math.pow(E11_C1l[5], q)),
      ((weight[2] * weight[6] / (1 - weight[2])) * math.pow(E11_C1l[2], p) * math.pow(E11_C1l[6], q)),
      ((weight[2] * weight[7] / (1 - weight[2])) * math.pow(E11_C1l[2], p) * math.pow(E11_C1l[7], q)),
      ((weight[2] * weight[0] / (1 - weight[2])) * math.pow(E11_C1l[2], p) * math.pow(E11_C1l[0], q)),
      ((weight[2] * weight[1] / (1 - weight[2])) * math.pow(E11_C1l[2], p) * math.pow(E11_C1l[1], q)))))

E11_F_SCoB_l4 = sum(
    ((((weight[3] * weight[4] / (1 - weight[3])) * math.pow(E11_C1l[3], p) * math.pow(E11_C1l[4], q)),
      ((weight[3] * weight[5] / (1 - weight[3])) * math.pow(E11_C1l[3], p) * math.pow(E11_C1l[5], q)),
      ((weight[3] * weight[6] / (1 - weight[3])) * math.pow(E11_C1l[3], p) * math.pow(E11_C1l[6], q)),
      ((weight[3] * weight[7] / (1 - weight[3])) * math.pow(E11_C1l[3], p) * math.pow(E11_C1l[7], q)),
      ((weight[3] * weight[0] / (1 - weight[3])) * math.pow(E11_C1l[3], p) * math.pow(E11_C1l[0], q)),
      ((weight[3] * weight[1] / (1 - weight[3])) * math.pow(E11_C1l[3], p) * math.pow(E11_C1l[1], q)),
      ((weight[3] * weight[2] / (1 - weight[3])) * math.pow(E11_C1l[3], p) * math.pow(E11_C1l[2], q)))))

E11_F_SCoB_l5 = sum(
    ((((weight[4] * weight[5] / (1 - weight[4])) * math.pow(E11_C1l[4], p) * math.pow(E11_C1l[5], q)),
      ((weight[4] * weight[6] / (1 - weight[4])) * math.pow(E11_C1l[4], p) * math.pow(E11_C1l[6], q)),
      ((weight[4] * weight[7] / (1 - weight[4])) * math.pow(E11_C1l[4], p) * math.pow(E11_C1l[7], q)),
      ((weight[4] * weight[0] / (1 - weight[4])) * math.pow(E11_C1l[4], p) * math.pow(E11_C1l[0], q)),
      ((weight[4] * weight[1] / (1 - weight[4])) * math.pow(E11_C1l[4], p) * math.pow(E11_C1l[1], q)),
      ((weight[4] * weight[2] / (1 - weight[4])) * math.pow(E11_C1l[4], p) * math.pow(E11_C1l[2], q)),
      ((weight[4] * weight[3] / (1 - weight[4])) * math.pow(E11_C1l[4], p) * math.pow(E11_C1l[3], q)))))

E11_F_SCoB_l6 = sum(
    ((((weight[5] * weight[6] / (1 - weight[5])) * math.pow(E11_C1l[5], p) * math.pow(E11_C1l[6], q)),
      ((weight[5] * weight[7] / (1 - weight[5])) * math.pow(E11_C1l[5], p) * math.pow(E11_C1l[7], q)),
      ((weight[5] * weight[0] / (1 - weight[5])) * math.pow(E11_C1l[5], p) * math.pow(E11_C1l[0], q)),
      ((weight[5] * weight[1] / (1 - weight[5])) * math.pow(E11_C1l[5], p) * math.pow(E11_C1l[1], q)),
      ((weight[5] * weight[2] / (1 - weight[5])) * math.pow(E11_C1l[5], p) * math.pow(E11_C1l[2], q)),
      ((weight[5] * weight[3] / (1 - weight[5])) * math.pow(E11_C1l[5], p) * math.pow(E11_C1l[3], q)),
      ((weight[5] * weight[4] / (1 - weight[5])) * math.pow(E11_C1l[5], p) * math.pow(E11_C1l[4], q)))))

E11_F_SCoB_l7 = sum(
    ((((weight[6] * weight[7] / (1 - weight[6])) * math.pow(E11_C1l[6], p) * math.pow(E11_C1l[7], q)),
      ((weight[6] * weight[0] / (1 - weight[6])) * math.pow(E11_C1l[6], p) * math.pow(E11_C1l[0], q)),
      ((weight[6] * weight[1] / (1 - weight[6])) * math.pow(E11_C1l[6], p) * math.pow(E11_C1l[1], q)),
      ((weight[6] * weight[2] / (1 - weight[6])) * math.pow(E11_C1l[6], p) * math.pow(E11_C1l[2], q)),
      ((weight[6] * weight[3] / (1 - weight[6])) * math.pow(E11_C1l[6], p) * math.pow(E11_C1l[3], q)),
      ((weight[6] * weight[4] / (1 - weight[6])) * math.pow(E11_C1l[6], p) * math.pow(E11_C1l[4], q)),
      ((weight[6] * weight[5] / (1 - weight[6])) * math.pow(E11_C1l[6], p) * math.pow(E11_C1l[5], q)))))

E11_F_SCoB_l8 = sum(
    ((((weight[7] * weight[0] / (1 - weight[7])) * math.pow(E11_C1l[7], p) * math.pow(E11_C1l[0], q)),
      ((weight[7] * weight[1] / (1 - weight[7])) * math.pow(E11_C1l[7], p) * math.pow(E11_C1l[1], q)),
      ((weight[7] * weight[2] / (1 - weight[7])) * math.pow(E11_C1l[7], p) * math.pow(E11_C1l[2], q)),
      ((weight[7] * weight[3] / (1 - weight[7])) * math.pow(E11_C1l[7], p) * math.pow(E11_C1l[3], q)),
      ((weight[7] * weight[4] / (1 - weight[7])) * math.pow(E11_C1l[7], p) * math.pow(E11_C1l[4], q)),
      ((weight[7] * weight[5] / (1 - weight[7])) * math.pow(E11_C1l[7], p) * math.pow(E11_C1l[5], q)),
      ((weight[7] * weight[6] / (1 - weight[7])) * math.pow(E11_C1l[7], p) * math.pow(E11_C1l[6], q)))))
E11_F_SCoB_l = pow(sum(
    (E11_F_SCoB_l1, E11_F_SCoB_l2, E11_F_SCoB_l3, E11_F_SCoB_l4, E11_F_SCoB_l5, E11_F_SCoB_l6, E11_F_SCoB_l7,
     E11_F_SCoB_l8)),
    a)
# </editor-fold>
# <editor-fold desc="E11_F_SCoB_m">
E11_F_SCoB_m1 = sum(
    ((((weight[0] * weight[1] / (1 - weight[0])) * math.pow(E11_C1m[0], p) * math.pow(E11_C1m[1], q)),
      ((weight[0] * weight[2] / (1 - weight[0])) * math.pow(E11_C1m[0], p) * math.pow(E11_C1m[2], q)),
      ((weight[0] * weight[3] / (1 - weight[0])) * math.pow(E11_C1m[0], p) * math.pow(E11_C1m[3], q)),
      ((weight[0] * weight[4] / (1 - weight[0])) * math.pow(E11_C1m[0], p) * math.pow(E11_C1m[4], q)),
      ((weight[0] * weight[5] / (1 - weight[0])) * math.pow(E11_C1m[0], p) * math.pow(E11_C1m[5], q)),
      ((weight[0] * weight[6] / (1 - weight[0])) * math.pow(E11_C1m[0], p) * math.pow(E11_C1m[6], q)),
      ((weight[0] * weight[7] / (1 - weight[0])) * math.pow(E11_C1m[0], p) * math.pow(E11_C1m[2], q)))))

E11_F_SCoB_m2 = sum(
    ((((weight[1] * weight[2] / (1 - weight[1])) * math.pow(E11_C1m[1], p) * math.pow(E11_C1m[2], q)),
      ((weight[1] * weight[3] / (1 - weight[1])) * math.pow(E11_C1m[1], p) * math.pow(E11_C1m[3], q)),
      ((weight[1] * weight[4] / (1 - weight[1])) * math.pow(E11_C1m[1], p) * math.pow(E11_C1m[4], q)),
      ((weight[1] * weight[5] / (1 - weight[1])) * math.pow(E11_C1m[1], p) * math.pow(E11_C1m[5], q)),
      ((weight[1] * weight[6] / (1 - weight[1])) * math.pow(E11_C1m[1], p) * math.pow(E11_C1m[6], q)),
      ((weight[1] * weight[7] / (1 - weight[1])) * math.pow(E11_C1m[1], p) * math.pow(E11_C1m[7], q)),
      ((weight[1] * weight[0] / (1 - weight[1])) * math.pow(E11_C1m[1], p) * math.pow(E11_C1m[0], q)))))

E11_F_SCoB_m3 = sum(
    ((((weight[2] * weight[3] / (1 - weight[2])) * math.pow(E11_C1m[2], p) * math.pow(E11_C1m[3], q)),
      ((weight[2] * weight[4] / (1 - weight[2])) * math.pow(E11_C1m[2], p) * math.pow(E11_C1m[4], q)),
      ((weight[2] * weight[5] / (1 - weight[2])) * math.pow(E11_C1m[2], p) * math.pow(E11_C1m[5], q)),
      ((weight[2] * weight[6] / (1 - weight[2])) * math.pow(E11_C1m[2], p) * math.pow(E11_C1m[6], q)),
      ((weight[2] * weight[7] / (1 - weight[2])) * math.pow(E11_C1m[2], p) * math.pow(E11_C1m[7], q)),
      ((weight[2] * weight[0] / (1 - weight[2])) * math.pow(E11_C1m[2], p) * math.pow(E11_C1m[0], q)),
      ((weight[2] * weight[1] / (1 - weight[2])) * math.pow(E11_C1m[2], p) * math.pow(E11_C1m[1], q)))))

E11_F_SCoB_m4 = sum(
    ((((weight[3] * weight[4] / (1 - weight[3])) * math.pow(E11_C1m[3], p) * math.pow(E11_C1m[4], q)),
      ((weight[3] * weight[5] / (1 - weight[3])) * math.pow(E11_C1m[3], p) * math.pow(E11_C1m[5], q)),
      ((weight[3] * weight[6] / (1 - weight[3])) * math.pow(E11_C1m[3], p) * math.pow(E11_C1m[6], q)),
      ((weight[3] * weight[7] / (1 - weight[3])) * math.pow(E11_C1m[3], p) * math.pow(E11_C1m[7], q)),
      ((weight[3] * weight[0] / (1 - weight[3])) * math.pow(E11_C1m[3], p) * math.pow(E11_C1m[0], q)),
      ((weight[3] * weight[1] / (1 - weight[3])) * math.pow(E11_C1m[3], p) * math.pow(E11_C1m[1], q)),
      ((weight[3] * weight[2] / (1 - weight[3])) * math.pow(E11_C1m[3], p) * math.pow(E11_C1m[2], q)))))

E11_F_SCoB_m5 = sum(
    ((((weight[4] * weight[5] / (1 - weight[4])) * math.pow(E11_C1m[4], p) * math.pow(E11_C1m[5], q)),
      ((weight[4] * weight[6] / (1 - weight[4])) * math.pow(E11_C1m[4], p) * math.pow(E11_C1m[6], q)),
      ((weight[4] * weight[7] / (1 - weight[4])) * math.pow(E11_C1m[4], p) * math.pow(E11_C1m[7], q)),
      ((weight[4] * weight[0] / (1 - weight[4])) * math.pow(E11_C1m[4], p) * math.pow(E11_C1m[0], q)),
      ((weight[4] * weight[1] / (1 - weight[4])) * math.pow(E11_C1m[4], p) * math.pow(E11_C1m[1], q)),
      ((weight[4] * weight[2] / (1 - weight[4])) * math.pow(E11_C1m[4], p) * math.pow(E11_C1m[2], q)),
      ((weight[4] * weight[3] / (1 - weight[4])) * math.pow(E11_C1m[4], p) * math.pow(E11_C1m[3], q)))))

E11_F_SCoB_m6 = sum(
    ((((weight[5] * weight[6] / (1 - weight[5])) * math.pow(E11_C1m[5], p) * math.pow(E11_C1m[6], q)),
      ((weight[5] * weight[7] / (1 - weight[5])) * math.pow(E11_C1m[5], p) * math.pow(E11_C1m[7], q)),
      ((weight[5] * weight[0] / (1 - weight[5])) * math.pow(E11_C1m[5], p) * math.pow(E11_C1m[0], q)),
      ((weight[5] * weight[1] / (1 - weight[5])) * math.pow(E11_C1m[5], p) * math.pow(E11_C1m[1], q)),
      ((weight[5] * weight[2] / (1 - weight[5])) * math.pow(E11_C1m[5], p) * math.pow(E11_C1m[2], q)),
      ((weight[5] * weight[3] / (1 - weight[5])) * math.pow(E11_C1m[5], p) * math.pow(E11_C1m[3], q)),
      ((weight[5] * weight[4] / (1 - weight[5])) * math.pow(E11_C1m[5], p) * math.pow(E11_C1m[4], q)))))

E11_F_SCoB_m7 = sum(
    ((((weight[6] * weight[7] / (1 - weight[6])) * math.pow(E11_C1m[6], p) * math.pow(E11_C1m[7], q)),
      ((weight[6] * weight[0] / (1 - weight[6])) * math.pow(E11_C1m[6], p) * math.pow(E11_C1m[0], q)),
      ((weight[6] * weight[1] / (1 - weight[6])) * math.pow(E11_C1m[6], p) * math.pow(E11_C1m[1], q)),
      ((weight[6] * weight[2] / (1 - weight[6])) * math.pow(E11_C1m[6], p) * math.pow(E11_C1m[2], q)),
      ((weight[6] * weight[3] / (1 - weight[6])) * math.pow(E11_C1m[6], p) * math.pow(E11_C1m[3], q)),
      ((weight[6] * weight[4] / (1 - weight[6])) * math.pow(E11_C1m[6], p) * math.pow(E11_C1m[4], q)),
      ((weight[6] * weight[5] / (1 - weight[6])) * math.pow(E11_C1m[6], p) * math.pow(E11_C1m[5], q)))))

E11_F_SCoB_m8 = sum(
    ((((weight[7] * weight[0] / (1 - weight[7])) * math.pow(E11_C1m[7], p) * math.pow(E11_C1m[0], q)),
      ((weight[7] * weight[1] / (1 - weight[7])) * math.pow(E11_C1m[7], p) * math.pow(E11_C1m[1], q)),
      ((weight[7] * weight[2] / (1 - weight[7])) * math.pow(E11_C1m[7], p) * math.pow(E11_C1m[2], q)),
      ((weight[7] * weight[3] / (1 - weight[7])) * math.pow(E11_C1m[7], p) * math.pow(E11_C1m[3], q)),
      ((weight[7] * weight[4] / (1 - weight[7])) * math.pow(E11_C1m[7], p) * math.pow(E11_C1m[4], q)),
      ((weight[7] * weight[5] / (1 - weight[7])) * math.pow(E11_C1m[7], p) * math.pow(E11_C1m[5], q)),
      ((weight[7] * weight[6] / (1 - weight[7])) * math.pow(E11_C1m[7], p) * math.pow(E11_C1m[6], q)))))
E11_F_SCoB_m = pow(sum(
    (E11_F_SCoB_m1, E11_F_SCoB_m2, E11_F_SCoB_m3, E11_F_SCoB_m4, E11_F_SCoB_m5, E11_F_SCoB_m6, E11_F_SCoB_m7,
     E11_F_SCoB_m8)),
    a)
# </editor-fold>
# <editor-fold desc="E11_F_SCoB_u">
E11_F_SCoB_u1 = sum(
    ((((weight[0] * weight[1] / (1 - weight[0])) * math.pow(E11_C1u[0], p) * math.pow(E11_C1u[1], q)),
      ((weight[0] * weight[2] / (1 - weight[0])) * math.pow(E11_C1u[0], p) * math.pow(E11_C1u[2], q)),
      ((weight[0] * weight[3] / (1 - weight[0])) * math.pow(E11_C1u[0], p) * math.pow(E11_C1u[3], q)),
      ((weight[0] * weight[4] / (1 - weight[0])) * math.pow(E11_C1u[0], p) * math.pow(E11_C1u[4], q)),
      ((weight[0] * weight[5] / (1 - weight[0])) * math.pow(E11_C1u[0], p) * math.pow(E11_C1u[5], q)),
      ((weight[0] * weight[6] / (1 - weight[0])) * math.pow(E11_C1u[0], p) * math.pow(E11_C1u[6], q)),
      ((weight[0] * weight[7] / (1 - weight[0])) * math.pow(E11_C1u[0], p) * math.pow(E11_C1u[2], q)))))

E11_F_SCoB_u2 = sum(
    ((((weight[1] * weight[2] / (1 - weight[1])) * math.pow(E11_C1u[1], p) * math.pow(E11_C1u[2], q)),
      ((weight[1] * weight[3] / (1 - weight[1])) * math.pow(E11_C1u[1], p) * math.pow(E11_C1u[3], q)),
      ((weight[1] * weight[4] / (1 - weight[1])) * math.pow(E11_C1u[1], p) * math.pow(E11_C1u[4], q)),
      ((weight[1] * weight[5] / (1 - weight[1])) * math.pow(E11_C1u[1], p) * math.pow(E11_C1u[5], q)),
      ((weight[1] * weight[6] / (1 - weight[1])) * math.pow(E11_C1u[1], p) * math.pow(E11_C1u[6], q)),
      ((weight[1] * weight[7] / (1 - weight[1])) * math.pow(E11_C1u[1], p) * math.pow(E11_C1u[7], q)),
      ((weight[1] * weight[0] / (1 - weight[1])) * math.pow(E11_C1u[1], p) * math.pow(E11_C1u[0], q)))))

E11_F_SCoB_u3 = sum(
    ((((weight[2] * weight[3] / (1 - weight[2])) * math.pow(E11_C1u[2], p) * math.pow(E11_C1u[3], q)),
      ((weight[2] * weight[4] / (1 - weight[2])) * math.pow(E11_C1u[2], p) * math.pow(E11_C1u[4], q)),
      ((weight[2] * weight[5] / (1 - weight[2])) * math.pow(E11_C1u[2], p) * math.pow(E11_C1u[5], q)),
      ((weight[2] * weight[6] / (1 - weight[2])) * math.pow(E11_C1u[2], p) * math.pow(E11_C1u[6], q)),
      ((weight[2] * weight[7] / (1 - weight[2])) * math.pow(E11_C1u[2], p) * math.pow(E11_C1u[7], q)),
      ((weight[2] * weight[0] / (1 - weight[2])) * math.pow(E11_C1u[2], p) * math.pow(E11_C1u[0], q)),
      ((weight[2] * weight[1] / (1 - weight[2])) * math.pow(E11_C1u[2], p) * math.pow(E11_C1u[1], q)))))

E11_F_SCoB_u4 = sum(
    ((((weight[3] * weight[4] / (1 - weight[3])) * math.pow(E11_C1u[3], p) * math.pow(E11_C1u[4], q)),
      ((weight[3] * weight[5] / (1 - weight[3])) * math.pow(E11_C1u[3], p) * math.pow(E11_C1u[5], q)),
      ((weight[3] * weight[6] / (1 - weight[3])) * math.pow(E11_C1u[3], p) * math.pow(E11_C1u[6], q)),
      ((weight[3] * weight[7] / (1 - weight[3])) * math.pow(E11_C1u[3], p) * math.pow(E11_C1u[7], q)),
      ((weight[3] * weight[0] / (1 - weight[3])) * math.pow(E11_C1u[3], p) * math.pow(E11_C1u[0], q)),
      ((weight[3] * weight[1] / (1 - weight[3])) * math.pow(E11_C1u[3], p) * math.pow(E11_C1u[1], q)),
      ((weight[3] * weight[2] / (1 - weight[3])) * math.pow(E11_C1u[3], p) * math.pow(E11_C1u[2], q)))))

E11_F_SCoB_u5 = sum(
    ((((weight[4] * weight[5] / (1 - weight[4])) * math.pow(E11_C1u[4], p) * math.pow(E11_C1u[5], q)),
      ((weight[4] * weight[6] / (1 - weight[4])) * math.pow(E11_C1u[4], p) * math.pow(E11_C1u[6], q)),
      ((weight[4] * weight[7] / (1 - weight[4])) * math.pow(E11_C1u[4], p) * math.pow(E11_C1u[7], q)),
      ((weight[4] * weight[0] / (1 - weight[4])) * math.pow(E11_C1u[4], p) * math.pow(E11_C1u[0], q)),
      ((weight[4] * weight[1] / (1 - weight[4])) * math.pow(E11_C1u[4], p) * math.pow(E11_C1u[1], q)),
      ((weight[4] * weight[2] / (1 - weight[4])) * math.pow(E11_C1u[4], p) * math.pow(E11_C1u[2], q)),
      ((weight[4] * weight[3] / (1 - weight[4])) * math.pow(E11_C1u[4], p) * math.pow(E11_C1u[3], q)))))

E11_F_SCoB_u6 = sum(
    ((((weight[5] * weight[6] / (1 - weight[5])) * math.pow(E11_C1u[5], p) * math.pow(E11_C1u[6], q)),
      ((weight[5] * weight[7] / (1 - weight[5])) * math.pow(E11_C1u[5], p) * math.pow(E11_C1u[7], q)),
      ((weight[5] * weight[0] / (1 - weight[5])) * math.pow(E11_C1u[5], p) * math.pow(E11_C1u[0], q)),
      ((weight[5] * weight[1] / (1 - weight[5])) * math.pow(E11_C1u[5], p) * math.pow(E11_C1u[1], q)),
      ((weight[5] * weight[2] / (1 - weight[5])) * math.pow(E11_C1u[5], p) * math.pow(E11_C1u[2], q)),
      ((weight[5] * weight[3] / (1 - weight[5])) * math.pow(E11_C1u[5], p) * math.pow(E11_C1u[3], q)),
      ((weight[5] * weight[4] / (1 - weight[5])) * math.pow(E11_C1u[5], p) * math.pow(E11_C1u[4], q)))))

E11_F_SCoB_u7 = sum(
    ((((weight[6] * weight[7] / (1 - weight[6])) * math.pow(E11_C1u[6], p) * math.pow(E11_C1u[7], q)),
      ((weight[6] * weight[0] / (1 - weight[6])) * math.pow(E11_C1u[6], p) * math.pow(E11_C1u[0], q)),
      ((weight[6] * weight[1] / (1 - weight[6])) * math.pow(E11_C1u[6], p) * math.pow(E11_C1u[1], q)),
      ((weight[6] * weight[2] / (1 - weight[6])) * math.pow(E11_C1u[6], p) * math.pow(E11_C1u[2], q)),
      ((weight[6] * weight[3] / (1 - weight[6])) * math.pow(E11_C1u[6], p) * math.pow(E11_C1u[3], q)),
      ((weight[6] * weight[4] / (1 - weight[6])) * math.pow(E11_C1u[6], p) * math.pow(E11_C1u[4], q)),
      ((weight[6] * weight[5] / (1 - weight[6])) * math.pow(E11_C1u[6], p) * math.pow(E11_C1u[5], q)))))

E11_F_SCoB_u8 = sum(
    ((((weight[7] * weight[0] / (1 - weight[7])) * math.pow(E11_C1u[7], p) * math.pow(E11_C1u[0], q)),
      ((weight[7] * weight[1] / (1 - weight[7])) * math.pow(E11_C1u[7], p) * math.pow(E11_C1u[1], q)),
      ((weight[7] * weight[2] / (1 - weight[7])) * math.pow(E11_C1u[7], p) * math.pow(E11_C1u[2], q)),
      ((weight[7] * weight[3] / (1 - weight[7])) * math.pow(E11_C1u[7], p) * math.pow(E11_C1u[3], q)),
      ((weight[7] * weight[4] / (1 - weight[7])) * math.pow(E11_C1u[7], p) * math.pow(E11_C1u[4], q)),
      ((weight[7] * weight[5] / (1 - weight[7])) * math.pow(E11_C1u[7], p) * math.pow(E11_C1u[5], q)),
      ((weight[7] * weight[6] / (1 - weight[7])) * math.pow(E11_C1u[7], p) * math.pow(E11_C1u[6], q)))))
E11_F_SCoB_u = pow(sum(
    (E11_F_SCoB_u1, E11_F_SCoB_u2, E11_F_SCoB_u3, E11_F_SCoB_u4, E11_F_SCoB_u5, E11_F_SCoB_u6, E11_F_SCoB_u7,
     E11_F_SCoB_u8)),
    a)
# </editor-fold>
# print(E11_F_SCoB_l)
# print(E11_F_SCoB_m)
# print(E11_F_SCoB_u)
E11_SCoB = (E11_F_SCoB_l + 4 * E11_F_SCoB_m + E11_F_SCoB_u) / 6

# <editor-fold desc="E11_F_PCoB_l">
E11_F_PCoB_l1 = numpy.prod((math.pow((p * E11_C1l[0] + q * E11_C1l[1]), (weight[0] * weight[1] / (1 - weight[0]))),
                            math.pow((p * E11_C1l[0] + q * E11_C1l[2]), (weight[0] * weight[2] / (1 - weight[0]))),
                            math.pow((p * E11_C1l[0] + q * E11_C1l[3]), (weight[0] * weight[3] / (1 - weight[0]))),
                            math.pow((p * E11_C1l[0] + q * E11_C1l[4]), (weight[0] * weight[4] / (1 - weight[0]))),
                            math.pow((p * E11_C1l[0] + q * E11_C1l[5]), (weight[0] * weight[5] / (1 - weight[0]))),
                            math.pow((p * E11_C1l[0] + q * E11_C1l[6]), (weight[0] * weight[6] / (1 - weight[0]))),
                            math.pow((p * E11_C1l[0] + q * E11_C1l[7]), (weight[0] * weight[7] / (1 - weight[0])))))

E11_F_PCoB_l2 = numpy.prod((math.pow((p * E11_C1l[1] + q * E11_C1l[2]), (weight[1] * weight[2] / (1 - weight[1]))),
                            math.pow((p * E11_C1l[1] + q * E11_C1l[3]), (weight[1] * weight[3] / (1 - weight[1]))),
                            math.pow((p * E11_C1l[1] + q * E11_C1l[4]), (weight[1] * weight[4] / (1 - weight[1]))),
                            math.pow((p * E11_C1l[1] + q * E11_C1l[5]), (weight[1] * weight[5] / (1 - weight[1]))),
                            math.pow((p * E11_C1l[1] + q * E11_C1l[6]), (weight[1] * weight[6] / (1 - weight[1]))),
                            math.pow((p * E11_C1l[1] + q * E11_C1l[7]), (weight[1] * weight[7] / (1 - weight[1]))),
                            math.pow((p * E11_C1l[1] + q * E11_C1l[0]), (weight[1] * weight[0] / (1 - weight[1])))))

E11_F_PCoB_l3 = numpy.prod((math.pow((p * E11_C1l[2] + q * E11_C1l[3]), (weight[2] * weight[3] / (1 - weight[2]))),
                            math.pow((p * E11_C1l[2] + q * E11_C1l[4]), (weight[2] * weight[4] / (1 - weight[2]))),
                            math.pow((p * E11_C1l[2] + q * E11_C1l[5]), (weight[2] * weight[5] / (1 - weight[2]))),
                            math.pow((p * E11_C1l[2] + q * E11_C1l[6]), (weight[2] * weight[6] / (1 - weight[2]))),
                            math.pow((p * E11_C1l[2] + q * E11_C1l[7]), (weight[2] * weight[7] / (1 - weight[2]))),
                            math.pow((p * E11_C1l[2] + q * E11_C1l[0]), (weight[2] * weight[0] / (1 - weight[2]))),
                            math.pow((p * E11_C1l[2] + q * E11_C1l[1]), (weight[2] * weight[1] / (1 - weight[2])))))

E11_F_PCoB_l4 = numpy.prod((math.pow((p * E11_C1l[3] + q * E11_C1l[4]), (weight[3] * weight[4] / (1 - weight[3]))),
                            math.pow((p * E11_C1l[3] + q * E11_C1l[5]), (weight[3] * weight[5] / (1 - weight[3]))),
                            math.pow((p * E11_C1l[3] + q * E11_C1l[6]), (weight[3] * weight[6] / (1 - weight[3]))),
                            math.pow((p * E11_C1l[3] + q * E11_C1l[7]), (weight[3] * weight[7] / (1 - weight[3]))),
                            math.pow((p * E11_C1l[3] + q * E11_C1l[0]), (weight[3] * weight[0] / (1 - weight[3]))),
                            math.pow((p * E11_C1l[3] + q * E11_C1l[1]), (weight[3] * weight[1] / (1 - weight[3]))),
                            math.pow((p * E11_C1l[3] + q * E11_C1l[2]), (weight[3] * weight[2] / (1 - weight[3])))))

E11_F_PCoB_l5 = numpy.prod((math.pow((p * E11_C1l[4] + q * E11_C1l[5]), (weight[4] * weight[5] / (1 - weight[4]))),
                            math.pow((p * E11_C1l[4] + q * E11_C1l[6]), (weight[4] * weight[6] / (1 - weight[4]))),
                            math.pow((p * E11_C1l[4] + q * E11_C1l[7]), (weight[4] * weight[7] / (1 - weight[4]))),
                            math.pow((p * E11_C1l[4] + q * E11_C1l[0]), (weight[4] * weight[0] / (1 - weight[4]))),
                            math.pow((p * E11_C1l[4] + q * E11_C1l[1]), (weight[4] * weight[1] / (1 - weight[4]))),
                            math.pow((p * E11_C1l[4] + q * E11_C1l[2]), (weight[4] * weight[2] / (1 - weight[4]))),
                            math.pow((p * E11_C1l[4] + q * E11_C1l[3]), (weight[4] * weight[3] / (1 - weight[4])))))

E11_F_PCoB_l6 = numpy.prod((math.pow((p * E11_C1l[5] + q * E11_C1l[6]), (weight[5] * weight[6] / (1 - weight[5]))),
                            math.pow((p * E11_C1l[5] + q * E11_C1l[7]), (weight[5] * weight[7] / (1 - weight[5]))),
                            math.pow((p * E11_C1l[5] + q * E11_C1l[0]), (weight[5] * weight[0] / (1 - weight[5]))),
                            math.pow((p * E11_C1l[5] + q * E11_C1l[1]), (weight[5] * weight[1] / (1 - weight[5]))),
                            math.pow((p * E11_C1l[5] + q * E11_C1l[2]), (weight[5] * weight[2] / (1 - weight[5]))),
                            math.pow((p * E11_C1l[5] + q * E11_C1l[3]), (weight[5] * weight[3] / (1 - weight[5]))),
                            math.pow((p * E11_C1l[5] + q * E11_C1l[4]), (weight[5] * weight[4] / (1 - weight[5])))))

E11_F_PCoB_l7 = numpy.prod((math.pow((p * E11_C1l[6] + q * E11_C1l[7]), (weight[6] * weight[7] / (1 - weight[6]))),
                            math.pow((p * E11_C1l[6] + q * E11_C1l[0]), (weight[6] * weight[0] / (1 - weight[6]))),
                            math.pow((p * E11_C1l[6] + q * E11_C1l[1]), (weight[6] * weight[1] / (1 - weight[6]))),
                            math.pow((p * E11_C1l[6] + q * E11_C1l[2]), (weight[6] * weight[2] / (1 - weight[6]))),
                            math.pow((p * E11_C1l[6] + q * E11_C1l[3]), (weight[6] * weight[3] / (1 - weight[6]))),
                            math.pow((p * E11_C1l[6] + q * E11_C1l[4]), (weight[6] * weight[4] / (1 - weight[6]))),
                            math.pow((p * E11_C1l[6] + q * E11_C1l[5]), (weight[6] * weight[5] / (1 - weight[6])))))

E11_F_PCoB_l8 = numpy.prod((math.pow((p * E11_C1l[7] + q * E11_C1l[0]), (weight[7] * weight[0] / (1 - weight[7]))),
                            math.pow((p * E11_C1l[7] + q * E11_C1l[1]), (weight[7] * weight[1] / (1 - weight[7]))),
                            math.pow((p * E11_C1l[7] + q * E11_C1l[2]), (weight[7] * weight[2] / (1 - weight[7]))),
                            math.pow((p * E11_C1l[7] + q * E11_C1l[3]), (weight[7] * weight[3] / (1 - weight[7]))),
                            math.pow((p * E11_C1l[7] + q * E11_C1l[4]), (weight[7] * weight[4] / (1 - weight[7]))),
                            math.pow((p * E11_C1l[7] + q * E11_C1l[5]), (weight[7] * weight[5] / (1 - weight[7]))),
                            math.pow((p * E11_C1l[7] + q * E11_C1l[6]), (weight[7] * weight[6] / (1 - weight[7])))))
E11_F_PCoB_l = a * numpy.prod(
    (E11_F_PCoB_l1, E11_F_PCoB_l2, E11_F_PCoB_l3, E11_F_PCoB_l4, E11_F_PCoB_l5, E11_F_PCoB_l6, E11_F_PCoB_l7,
     E11_F_PCoB_l8))
# </editor-fold>
# <editor-fold desc="E11_F_PCoB_m">
E11_F_PCoB_m1 = numpy.prod((math.pow((p * E11_C1m[0] + q * E11_C1m[1]), (weight[0] * weight[1] / (1 - weight[0]))),
                            math.pow((p * E11_C1m[0] + q * E11_C1m[2]), (weight[0] * weight[2] / (1 - weight[0]))),
                            math.pow((p * E11_C1m[0] + q * E11_C1m[3]), (weight[0] * weight[3] / (1 - weight[0]))),
                            math.pow((p * E11_C1m[0] + q * E11_C1m[4]), (weight[0] * weight[4] / (1 - weight[0]))),
                            math.pow((p * E11_C1m[0] + q * E11_C1m[5]), (weight[0] * weight[5] / (1 - weight[0]))),
                            math.pow((p * E11_C1m[0] + q * E11_C1m[6]), (weight[0] * weight[6] / (1 - weight[0]))),
                            math.pow((p * E11_C1m[0] + q * E11_C1m[7]), (weight[0] * weight[7] / (1 - weight[0])))))

E11_F_PCoB_m2 = numpy.prod((math.pow((p * E11_C1m[1] + q * E11_C1m[2]), (weight[1] * weight[2] / (1 - weight[1]))),
                            math.pow((p * E11_C1m[1] + q * E11_C1m[3]), (weight[1] * weight[3] / (1 - weight[1]))),
                            math.pow((p * E11_C1m[1] + q * E11_C1m[4]), (weight[1] * weight[4] / (1 - weight[1]))),
                            math.pow((p * E11_C1m[1] + q * E11_C1m[5]), (weight[1] * weight[5] / (1 - weight[1]))),
                            math.pow((p * E11_C1m[1] + q * E11_C1m[6]), (weight[1] * weight[6] / (1 - weight[1]))),
                            math.pow((p * E11_C1m[1] + q * E11_C1m[7]), (weight[1] * weight[7] / (1 - weight[1]))),
                            math.pow((p * E11_C1m[1] + q * E11_C1m[0]), (weight[1] * weight[0] / (1 - weight[1])))))

E11_F_PCoB_m3 = numpy.prod((math.pow((p * E11_C1m[2] + q * E11_C1m[3]), (weight[2] * weight[3] / (1 - weight[2]))),
                            math.pow((p * E11_C1m[2] + q * E11_C1m[4]), (weight[2] * weight[4] / (1 - weight[2]))),
                            math.pow((p * E11_C1m[2] + q * E11_C1m[5]), (weight[2] * weight[5] / (1 - weight[2]))),
                            math.pow((p * E11_C1m[2] + q * E11_C1m[6]), (weight[2] * weight[6] / (1 - weight[2]))),
                            math.pow((p * E11_C1m[2] + q * E11_C1m[7]), (weight[2] * weight[7] / (1 - weight[2]))),
                            math.pow((p * E11_C1m[2] + q * E11_C1m[0]), (weight[2] * weight[0] / (1 - weight[2]))),
                            math.pow((p * E11_C1m[2] + q * E11_C1m[1]), (weight[2] * weight[1] / (1 - weight[2])))))

E11_F_PCoB_m4 = numpy.prod((math.pow((p * E11_C1m[3] + q * E11_C1m[4]), (weight[3] * weight[4] / (1 - weight[3]))),
                            math.pow((p * E11_C1m[3] + q * E11_C1m[5]), (weight[3] * weight[5] / (1 - weight[3]))),
                            math.pow((p * E11_C1m[3] + q * E11_C1m[6]), (weight[3] * weight[6] / (1 - weight[3]))),
                            math.pow((p * E11_C1m[3] + q * E11_C1m[7]), (weight[3] * weight[7] / (1 - weight[3]))),
                            math.pow((p * E11_C1m[3] + q * E11_C1m[0]), (weight[3] * weight[0] / (1 - weight[3]))),
                            math.pow((p * E11_C1m[3] + q * E11_C1m[1]), (weight[3] * weight[1] / (1 - weight[3]))),
                            math.pow((p * E11_C1m[3] + q * E11_C1m[2]), (weight[3] * weight[2] / (1 - weight[3])))))

E11_F_PCoB_m5 = numpy.prod((math.pow((p * E11_C1m[4] + q * E11_C1m[5]), (weight[4] * weight[5] / (1 - weight[4]))),
                            math.pow((p * E11_C1m[4] + q * E11_C1m[6]), (weight[4] * weight[6] / (1 - weight[4]))),
                            math.pow((p * E11_C1m[4] + q * E11_C1m[7]), (weight[4] * weight[7] / (1 - weight[4]))),
                            math.pow((p * E11_C1m[4] + q * E11_C1m[0]), (weight[4] * weight[0] / (1 - weight[4]))),
                            math.pow((p * E11_C1m[4] + q * E11_C1m[1]), (weight[4] * weight[1] / (1 - weight[4]))),
                            math.pow((p * E11_C1m[4] + q * E11_C1m[2]), (weight[4] * weight[2] / (1 - weight[4]))),
                            math.pow((p * E11_C1m[4] + q * E11_C1m[3]), (weight[4] * weight[3] / (1 - weight[4])))))

E11_F_PCoB_m6 = numpy.prod((math.pow((p * E11_C1m[5] + q * E11_C1m[6]), (weight[5] * weight[6] / (1 - weight[5]))),
                            math.pow((p * E11_C1m[5] + q * E11_C1m[7]), (weight[5] * weight[7] / (1 - weight[5]))),
                            math.pow((p * E11_C1m[5] + q * E11_C1m[0]), (weight[5] * weight[0] / (1 - weight[5]))),
                            math.pow((p * E11_C1m[5] + q * E11_C1m[1]), (weight[5] * weight[1] / (1 - weight[5]))),
                            math.pow((p * E11_C1m[5] + q * E11_C1m[2]), (weight[5] * weight[2] / (1 - weight[5]))),
                            math.pow((p * E11_C1m[5] + q * E11_C1m[3]), (weight[5] * weight[3] / (1 - weight[5]))),
                            math.pow((p * E11_C1m[5] + q * E11_C1m[4]), (weight[5] * weight[4] / (1 - weight[5])))))

E11_F_PCoB_m7 = numpy.prod((math.pow((p * E11_C1m[6] + q * E11_C1m[7]), (weight[6] * weight[7] / (1 - weight[6]))),
                            math.pow((p * E11_C1m[6] + q * E11_C1m[0]), (weight[6] * weight[0] / (1 - weight[6]))),
                            math.pow((p * E11_C1m[6] + q * E11_C1m[1]), (weight[6] * weight[1] / (1 - weight[6]))),
                            math.pow((p * E11_C1m[6] + q * E11_C1m[2]), (weight[6] * weight[2] / (1 - weight[6]))),
                            math.pow((p * E11_C1m[6] + q * E11_C1m[3]), (weight[6] * weight[3] / (1 - weight[6]))),
                            math.pow((p * E11_C1m[6] + q * E11_C1m[4]), (weight[6] * weight[4] / (1 - weight[6]))),
                            math.pow((p * E11_C1m[6] + q * E11_C1m[5]), (weight[6] * weight[5] / (1 - weight[6])))))

E11_F_PCoB_m8 = numpy.prod((math.pow((p * E11_C1m[7] + q * E11_C1m[0]), (weight[7] * weight[0] / (1 - weight[7]))),
                            math.pow((p * E11_C1m[7] + q * E11_C1m[1]), (weight[7] * weight[1] / (1 - weight[7]))),
                            math.pow((p * E11_C1m[7] + q * E11_C1m[2]), (weight[7] * weight[2] / (1 - weight[7]))),
                            math.pow((p * E11_C1m[7] + q * E11_C1m[3]), (weight[7] * weight[3] / (1 - weight[7]))),
                            math.pow((p * E11_C1m[7] + q * E11_C1m[4]), (weight[7] * weight[4] / (1 - weight[7]))),
                            math.pow((p * E11_C1m[7] + q * E11_C1m[5]), (weight[7] * weight[5] / (1 - weight[7]))),
                            math.pow((p * E11_C1m[7] + q * E11_C1m[6]), (weight[7] * weight[6] / (1 - weight[7])))))
E11_F_PCoB_m = a * numpy.prod(
    (E11_F_PCoB_m1, E11_F_PCoB_m2, E11_F_PCoB_m3, E11_F_PCoB_m4, E11_F_PCoB_m5, E11_F_PCoB_m6, E11_F_PCoB_m7,
     E11_F_PCoB_m8))
# </editor-fold>
# <editor-fold desc="E11_F_PCoB_u">
E11_F_PCoB_u1 = numpy.prod((math.pow((p * E11_C1u[0] + q * E11_C1u[1]), (weight[0] * weight[1] / (1 - weight[0]))),
                            math.pow((p * E11_C1u[0] + q * E11_C1u[2]), (weight[0] * weight[2] / (1 - weight[0]))),
                            math.pow((p * E11_C1u[0] + q * E11_C1u[3]), (weight[0] * weight[3] / (1 - weight[0]))),
                            math.pow((p * E11_C1u[0] + q * E11_C1u[4]), (weight[0] * weight[4] / (1 - weight[0]))),
                            math.pow((p * E11_C1u[0] + q * E11_C1u[5]), (weight[0] * weight[5] / (1 - weight[0]))),
                            math.pow((p * E11_C1u[0] + q * E11_C1u[6]), (weight[0] * weight[6] / (1 - weight[0]))),
                            math.pow((p * E11_C1u[0] + q * E11_C1u[7]), (weight[0] * weight[7] / (1 - weight[0])))))

E11_F_PCoB_u2 = numpy.prod((math.pow((p * E11_C1u[1] + q * E11_C1u[2]), (weight[1] * weight[2] / (1 - weight[1]))),
                            math.pow((p * E11_C1u[1] + q * E11_C1u[3]), (weight[1] * weight[3] / (1 - weight[1]))),
                            math.pow((p * E11_C1u[1] + q * E11_C1u[4]), (weight[1] * weight[4] / (1 - weight[1]))),
                            math.pow((p * E11_C1u[1] + q * E11_C1u[5]), (weight[1] * weight[5] / (1 - weight[1]))),
                            math.pow((p * E11_C1u[1] + q * E11_C1u[6]), (weight[1] * weight[6] / (1 - weight[1]))),
                            math.pow((p * E11_C1u[1] + q * E11_C1u[7]), (weight[1] * weight[7] / (1 - weight[1]))),
                            math.pow((p * E11_C1u[1] + q * E11_C1u[0]), (weight[1] * weight[0] / (1 - weight[1])))))

E11_F_PCoB_u3 = numpy.prod((math.pow((p * E11_C1u[2] + q * E11_C1u[3]), (weight[2] * weight[3] / (1 - weight[2]))),
                            math.pow((p * E11_C1u[2] + q * E11_C1u[4]), (weight[2] * weight[4] / (1 - weight[2]))),
                            math.pow((p * E11_C1u[2] + q * E11_C1u[5]), (weight[2] * weight[5] / (1 - weight[2]))),
                            math.pow((p * E11_C1u[2] + q * E11_C1u[6]), (weight[2] * weight[6] / (1 - weight[2]))),
                            math.pow((p * E11_C1u[2] + q * E11_C1u[7]), (weight[2] * weight[7] / (1 - weight[2]))),
                            math.pow((p * E11_C1u[2] + q * E11_C1u[0]), (weight[2] * weight[0] / (1 - weight[2]))),
                            math.pow((p * E11_C1u[2] + q * E11_C1u[1]), (weight[2] * weight[1] / (1 - weight[2])))))

E11_F_PCoB_u4 = numpy.prod((math.pow((p * E11_C1u[3] + q * E11_C1u[4]), (weight[3] * weight[4] / (1 - weight[3]))),
                            math.pow((p * E11_C1u[3] + q * E11_C1u[5]), (weight[3] * weight[5] / (1 - weight[3]))),
                            math.pow((p * E11_C1u[3] + q * E11_C1u[6]), (weight[3] * weight[6] / (1 - weight[3]))),
                            math.pow((p * E11_C1u[3] + q * E11_C1u[7]), (weight[3] * weight[7] / (1 - weight[3]))),
                            math.pow((p * E11_C1u[3] + q * E11_C1u[0]), (weight[3] * weight[0] / (1 - weight[3]))),
                            math.pow((p * E11_C1u[3] + q * E11_C1u[1]), (weight[3] * weight[1] / (1 - weight[3]))),
                            math.pow((p * E11_C1u[3] + q * E11_C1u[2]), (weight[3] * weight[2] / (1 - weight[3])))))

E11_F_PCoB_u5 = numpy.prod((math.pow((p * E11_C1u[4] + q * E11_C1u[5]), (weight[4] * weight[5] / (1 - weight[4]))),
                            math.pow((p * E11_C1u[4] + q * E11_C1u[6]), (weight[4] * weight[6] / (1 - weight[4]))),
                            math.pow((p * E11_C1u[4] + q * E11_C1u[7]), (weight[4] * weight[7] / (1 - weight[4]))),
                            math.pow((p * E11_C1u[4] + q * E11_C1u[0]), (weight[4] * weight[0] / (1 - weight[4]))),
                            math.pow((p * E11_C1u[4] + q * E11_C1u[1]), (weight[4] * weight[1] / (1 - weight[4]))),
                            math.pow((p * E11_C1u[4] + q * E11_C1u[2]), (weight[4] * weight[2] / (1 - weight[4]))),
                            math.pow((p * E11_C1u[4] + q * E11_C1u[3]), (weight[4] * weight[3] / (1 - weight[4])))))

E11_F_PCoB_u6 = numpy.prod((math.pow((p * E11_C1u[5] + q * E11_C1u[6]), (weight[5] * weight[6] / (1 - weight[5]))),
                            math.pow((p * E11_C1u[5] + q * E11_C1u[7]), (weight[5] * weight[7] / (1 - weight[5]))),
                            math.pow((p * E11_C1u[5] + q * E11_C1u[0]), (weight[5] * weight[0] / (1 - weight[5]))),
                            math.pow((p * E11_C1u[5] + q * E11_C1u[1]), (weight[5] * weight[1] / (1 - weight[5]))),
                            math.pow((p * E11_C1u[5] + q * E11_C1u[2]), (weight[5] * weight[2] / (1 - weight[5]))),
                            math.pow((p * E11_C1u[5] + q * E11_C1u[3]), (weight[5] * weight[3] / (1 - weight[5]))),
                            math.pow((p * E11_C1u[5] + q * E11_C1u[4]), (weight[5] * weight[4] / (1 - weight[5])))))

E11_F_PCoB_u7 = numpy.prod((math.pow((p * E11_C1u[6] + q * E11_C1u[7]), (weight[6] * weight[7] / (1 - weight[6]))),
                            math.pow((p * E11_C1u[6] + q * E11_C1u[0]), (weight[6] * weight[0] / (1 - weight[6]))),
                            math.pow((p * E11_C1u[6] + q * E11_C1u[1]), (weight[6] * weight[1] / (1 - weight[6]))),
                            math.pow((p * E11_C1u[6] + q * E11_C1u[2]), (weight[6] * weight[2] / (1 - weight[6]))),
                            math.pow((p * E11_C1u[6] + q * E11_C1u[3]), (weight[6] * weight[3] / (1 - weight[6]))),
                            math.pow((p * E11_C1u[6] + q * E11_C1u[4]), (weight[6] * weight[4] / (1 - weight[6]))),
                            math.pow((p * E11_C1u[6] + q * E11_C1u[5]), (weight[6] * weight[5] / (1 - weight[6])))))

E11_F_PCoB_u8 = numpy.prod((math.pow((p * E11_C1u[7] + q * E11_C1u[0]), (weight[7] * weight[0] / (1 - weight[7]))),
                            math.pow((p * E11_C1u[7] + q * E11_C1u[1]), (weight[7] * weight[1] / (1 - weight[7]))),
                            math.pow((p * E11_C1u[7] + q * E11_C1u[2]), (weight[7] * weight[2] / (1 - weight[7]))),
                            math.pow((p * E11_C1u[7] + q * E11_C1u[3]), (weight[7] * weight[3] / (1 - weight[7]))),
                            math.pow((p * E11_C1u[7] + q * E11_C1u[4]), (weight[7] * weight[4] / (1 - weight[7]))),
                            math.pow((p * E11_C1u[7] + q * E11_C1u[5]), (weight[7] * weight[5] / (1 - weight[7]))),
                            math.pow((p * E11_C1u[7] + q * E11_C1u[6]), (weight[7] * weight[6] / (1 - weight[7])))))
E11_F_PCoB_u = a * numpy.prod(
    (E11_F_PCoB_u1, E11_F_PCoB_u2, E11_F_PCoB_u3, E11_F_PCoB_u4, E11_F_PCoB_u5, E11_F_PCoB_u6, E11_F_PCoB_u7,
     E11_F_PCoB_u8))
# </editor-fold>
# print(E11_F_PCoB_l)
# print(E11_F_PCoB_m)
# print(E11_F_PCoB_u)
E11_PCoB = (E11_F_PCoB_l + 4 * E11_F_PCoB_m + E11_F_PCoB_u) / 6

# E12
# <editor-fold desc="E12_F_SCoB_l">
E12_F_SCoB_l1 = sum(
    ((((weight[0] * weight[1] / (1 - weight[0])) * math.pow(E12_C1l[0], p) * math.pow(E12_C1l[1], q)),
      ((weight[0] * weight[2] / (1 - weight[0])) * math.pow(E12_C1l[0], p) * math.pow(E12_C1l[2], q)),
      ((weight[0] * weight[3] / (1 - weight[0])) * math.pow(E12_C1l[0], p) * math.pow(E12_C1l[3], q)),
      ((weight[0] * weight[4] / (1 - weight[0])) * math.pow(E12_C1l[0], p) * math.pow(E12_C1l[4], q)),
      ((weight[0] * weight[5] / (1 - weight[0])) * math.pow(E12_C1l[0], p) * math.pow(E12_C1l[5], q)),
      ((weight[0] * weight[6] / (1 - weight[0])) * math.pow(E12_C1l[0], p) * math.pow(E12_C1l[6], q)),
      ((weight[0] * weight[7] / (1 - weight[0])) * math.pow(E12_C1l[0], p) * math.pow(E12_C1l[2], q)))))

E12_F_SCoB_l2 = sum(
    ((((weight[1] * weight[2] / (1 - weight[1])) * math.pow(E12_C1l[1], p) * math.pow(E12_C1l[2], q)),
      ((weight[1] * weight[3] / (1 - weight[1])) * math.pow(E12_C1l[1], p) * math.pow(E12_C1l[3], q)),
      ((weight[1] * weight[4] / (1 - weight[1])) * math.pow(E12_C1l[1], p) * math.pow(E12_C1l[4], q)),
      ((weight[1] * weight[5] / (1 - weight[1])) * math.pow(E12_C1l[1], p) * math.pow(E12_C1l[5], q)),
      ((weight[1] * weight[6] / (1 - weight[1])) * math.pow(E12_C1l[1], p) * math.pow(E12_C1l[6], q)),
      ((weight[1] * weight[7] / (1 - weight[1])) * math.pow(E12_C1l[1], p) * math.pow(E12_C1l[7], q)),
      ((weight[1] * weight[0] / (1 - weight[1])) * math.pow(E12_C1l[1], p) * math.pow(E12_C1l[0], q)))))

E12_F_SCoB_l3 = sum(
    ((((weight[2] * weight[3] / (1 - weight[2])) * math.pow(E12_C1l[2], p) * math.pow(E12_C1l[3], q)),
      ((weight[2] * weight[4] / (1 - weight[2])) * math.pow(E12_C1l[2], p) * math.pow(E12_C1l[4], q)),
      ((weight[2] * weight[5] / (1 - weight[2])) * math.pow(E12_C1l[2], p) * math.pow(E12_C1l[5], q)),
      ((weight[2] * weight[6] / (1 - weight[2])) * math.pow(E12_C1l[2], p) * math.pow(E12_C1l[6], q)),
      ((weight[2] * weight[7] / (1 - weight[2])) * math.pow(E12_C1l[2], p) * math.pow(E12_C1l[7], q)),
      ((weight[2] * weight[0] / (1 - weight[2])) * math.pow(E12_C1l[2], p) * math.pow(E12_C1l[0], q)),
      ((weight[2] * weight[1] / (1 - weight[2])) * math.pow(E12_C1l[2], p) * math.pow(E12_C1l[1], q)))))

E12_F_SCoB_l4 = sum(
    ((((weight[3] * weight[4] / (1 - weight[3])) * math.pow(E12_C1l[3], p) * math.pow(E12_C1l[4], q)),
      ((weight[3] * weight[5] / (1 - weight[3])) * math.pow(E12_C1l[3], p) * math.pow(E12_C1l[5], q)),
      ((weight[3] * weight[6] / (1 - weight[3])) * math.pow(E12_C1l[3], p) * math.pow(E12_C1l[6], q)),
      ((weight[3] * weight[7] / (1 - weight[3])) * math.pow(E12_C1l[3], p) * math.pow(E12_C1l[7], q)),
      ((weight[3] * weight[0] / (1 - weight[3])) * math.pow(E12_C1l[3], p) * math.pow(E12_C1l[0], q)),
      ((weight[3] * weight[1] / (1 - weight[3])) * math.pow(E12_C1l[3], p) * math.pow(E12_C1l[1], q)),
      ((weight[3] * weight[2] / (1 - weight[3])) * math.pow(E12_C1l[3], p) * math.pow(E12_C1l[2], q)))))

E12_F_SCoB_l5 = sum(
    ((((weight[4] * weight[5] / (1 - weight[4])) * math.pow(E12_C1l[4], p) * math.pow(E12_C1l[5], q)),
      ((weight[4] * weight[6] / (1 - weight[4])) * math.pow(E12_C1l[4], p) * math.pow(E12_C1l[6], q)),
      ((weight[4] * weight[7] / (1 - weight[4])) * math.pow(E12_C1l[4], p) * math.pow(E12_C1l[7], q)),
      ((weight[4] * weight[0] / (1 - weight[4])) * math.pow(E12_C1l[4], p) * math.pow(E12_C1l[0], q)),
      ((weight[4] * weight[1] / (1 - weight[4])) * math.pow(E12_C1l[4], p) * math.pow(E12_C1l[1], q)),
      ((weight[4] * weight[2] / (1 - weight[4])) * math.pow(E12_C1l[4], p) * math.pow(E12_C1l[2], q)),
      ((weight[4] * weight[3] / (1 - weight[4])) * math.pow(E12_C1l[4], p) * math.pow(E12_C1l[3], q)))))

E12_F_SCoB_l6 = sum(
    ((((weight[5] * weight[6] / (1 - weight[5])) * math.pow(E12_C1l[5], p) * math.pow(E12_C1l[6], q)),
      ((weight[5] * weight[7] / (1 - weight[5])) * math.pow(E12_C1l[5], p) * math.pow(E12_C1l[7], q)),
      ((weight[5] * weight[0] / (1 - weight[5])) * math.pow(E12_C1l[5], p) * math.pow(E12_C1l[0], q)),
      ((weight[5] * weight[1] / (1 - weight[5])) * math.pow(E12_C1l[5], p) * math.pow(E12_C1l[1], q)),
      ((weight[5] * weight[2] / (1 - weight[5])) * math.pow(E12_C1l[5], p) * math.pow(E12_C1l[2], q)),
      ((weight[5] * weight[3] / (1 - weight[5])) * math.pow(E12_C1l[5], p) * math.pow(E12_C1l[3], q)),
      ((weight[5] * weight[4] / (1 - weight[5])) * math.pow(E12_C1l[5], p) * math.pow(E12_C1l[4], q)))))

E12_F_SCoB_l7 = sum(
    ((((weight[6] * weight[7] / (1 - weight[6])) * math.pow(E12_C1l[6], p) * math.pow(E12_C1l[7], q)),
      ((weight[6] * weight[0] / (1 - weight[6])) * math.pow(E12_C1l[6], p) * math.pow(E12_C1l[0], q)),
      ((weight[6] * weight[1] / (1 - weight[6])) * math.pow(E12_C1l[6], p) * math.pow(E12_C1l[1], q)),
      ((weight[6] * weight[2] / (1 - weight[6])) * math.pow(E12_C1l[6], p) * math.pow(E12_C1l[2], q)),
      ((weight[6] * weight[3] / (1 - weight[6])) * math.pow(E12_C1l[6], p) * math.pow(E12_C1l[3], q)),
      ((weight[6] * weight[4] / (1 - weight[6])) * math.pow(E12_C1l[6], p) * math.pow(E12_C1l[4], q)),
      ((weight[6] * weight[5] / (1 - weight[6])) * math.pow(E12_C1l[6], p) * math.pow(E12_C1l[5], q)))))

E12_F_SCoB_l8 = sum(
    ((((weight[7] * weight[0] / (1 - weight[7])) * math.pow(E12_C1l[7], p) * math.pow(E12_C1l[0], q)),
      ((weight[7] * weight[1] / (1 - weight[7])) * math.pow(E12_C1l[7], p) * math.pow(E12_C1l[1], q)),
      ((weight[7] * weight[2] / (1 - weight[7])) * math.pow(E12_C1l[7], p) * math.pow(E12_C1l[2], q)),
      ((weight[7] * weight[3] / (1 - weight[7])) * math.pow(E12_C1l[7], p) * math.pow(E12_C1l[3], q)),
      ((weight[7] * weight[4] / (1 - weight[7])) * math.pow(E12_C1l[7], p) * math.pow(E12_C1l[4], q)),
      ((weight[7] * weight[5] / (1 - weight[7])) * math.pow(E12_C1l[7], p) * math.pow(E12_C1l[5], q)),
      ((weight[7] * weight[6] / (1 - weight[7])) * math.pow(E12_C1l[7], p) * math.pow(E12_C1l[6], q)))))
E12_F_SCoB_l = pow(sum(
    (E12_F_SCoB_l1, E12_F_SCoB_l2, E12_F_SCoB_l3, E12_F_SCoB_l4, E12_F_SCoB_l5, E12_F_SCoB_l6, E12_F_SCoB_l7,
     E12_F_SCoB_l8)),
    a)
# </editor-fold>
# <editor-fold desc="E12_F_SCoB_m">
E12_F_SCoB_m1 = sum(
    ((((weight[0] * weight[1] / (1 - weight[0])) * math.pow(E12_C1m[0], p) * math.pow(E12_C1m[1], q)),
      ((weight[0] * weight[2] / (1 - weight[0])) * math.pow(E12_C1m[0], p) * math.pow(E12_C1m[2], q)),
      ((weight[0] * weight[3] / (1 - weight[0])) * math.pow(E12_C1m[0], p) * math.pow(E12_C1m[3], q)),
      ((weight[0] * weight[4] / (1 - weight[0])) * math.pow(E12_C1m[0], p) * math.pow(E12_C1m[4], q)),
      ((weight[0] * weight[5] / (1 - weight[0])) * math.pow(E12_C1m[0], p) * math.pow(E12_C1m[5], q)),
      ((weight[0] * weight[6] / (1 - weight[0])) * math.pow(E12_C1m[0], p) * math.pow(E12_C1m[6], q)),
      ((weight[0] * weight[7] / (1 - weight[0])) * math.pow(E12_C1m[0], p) * math.pow(E12_C1m[2], q)))))

E12_F_SCoB_m2 = sum(
    ((((weight[1] * weight[2] / (1 - weight[1])) * math.pow(E12_C1m[1], p) * math.pow(E12_C1m[2], q)),
      ((weight[1] * weight[3] / (1 - weight[1])) * math.pow(E12_C1m[1], p) * math.pow(E12_C1m[3], q)),
      ((weight[1] * weight[4] / (1 - weight[1])) * math.pow(E12_C1m[1], p) * math.pow(E12_C1m[4], q)),
      ((weight[1] * weight[5] / (1 - weight[1])) * math.pow(E12_C1m[1], p) * math.pow(E12_C1m[5], q)),
      ((weight[1] * weight[6] / (1 - weight[1])) * math.pow(E12_C1m[1], p) * math.pow(E12_C1m[6], q)),
      ((weight[1] * weight[7] / (1 - weight[1])) * math.pow(E12_C1m[1], p) * math.pow(E12_C1m[7], q)),
      ((weight[1] * weight[0] / (1 - weight[1])) * math.pow(E12_C1m[1], p) * math.pow(E12_C1m[0], q)))))

E12_F_SCoB_m3 = sum(
    ((((weight[2] * weight[3] / (1 - weight[2])) * math.pow(E12_C1m[2], p) * math.pow(E12_C1m[3], q)),
      ((weight[2] * weight[4] / (1 - weight[2])) * math.pow(E12_C1m[2], p) * math.pow(E12_C1m[4], q)),
      ((weight[2] * weight[5] / (1 - weight[2])) * math.pow(E12_C1m[2], p) * math.pow(E12_C1m[5], q)),
      ((weight[2] * weight[6] / (1 - weight[2])) * math.pow(E12_C1m[2], p) * math.pow(E12_C1m[6], q)),
      ((weight[2] * weight[7] / (1 - weight[2])) * math.pow(E12_C1m[2], p) * math.pow(E12_C1m[7], q)),
      ((weight[2] * weight[0] / (1 - weight[2])) * math.pow(E12_C1m[2], p) * math.pow(E12_C1m[0], q)),
      ((weight[2] * weight[1] / (1 - weight[2])) * math.pow(E12_C1m[2], p) * math.pow(E12_C1m[1], q)))))

E12_F_SCoB_m4 = sum(
    ((((weight[3] * weight[4] / (1 - weight[3])) * math.pow(E12_C1m[3], p) * math.pow(E12_C1m[4], q)),
      ((weight[3] * weight[5] / (1 - weight[3])) * math.pow(E12_C1m[3], p) * math.pow(E12_C1m[5], q)),
      ((weight[3] * weight[6] / (1 - weight[3])) * math.pow(E12_C1m[3], p) * math.pow(E12_C1m[6], q)),
      ((weight[3] * weight[7] / (1 - weight[3])) * math.pow(E12_C1m[3], p) * math.pow(E12_C1m[7], q)),
      ((weight[3] * weight[0] / (1 - weight[3])) * math.pow(E12_C1m[3], p) * math.pow(E12_C1m[0], q)),
      ((weight[3] * weight[1] / (1 - weight[3])) * math.pow(E12_C1m[3], p) * math.pow(E12_C1m[1], q)),
      ((weight[3] * weight[2] / (1 - weight[3])) * math.pow(E12_C1m[3], p) * math.pow(E12_C1m[2], q)))))

E12_F_SCoB_m5 = sum(
    ((((weight[4] * weight[5] / (1 - weight[4])) * math.pow(E12_C1m[4], p) * math.pow(E12_C1m[5], q)),
      ((weight[4] * weight[6] / (1 - weight[4])) * math.pow(E12_C1m[4], p) * math.pow(E12_C1m[6], q)),
      ((weight[4] * weight[7] / (1 - weight[4])) * math.pow(E12_C1m[4], p) * math.pow(E12_C1m[7], q)),
      ((weight[4] * weight[0] / (1 - weight[4])) * math.pow(E12_C1m[4], p) * math.pow(E12_C1m[0], q)),
      ((weight[4] * weight[1] / (1 - weight[4])) * math.pow(E12_C1m[4], p) * math.pow(E12_C1m[1], q)),
      ((weight[4] * weight[2] / (1 - weight[4])) * math.pow(E12_C1m[4], p) * math.pow(E12_C1m[2], q)),
      ((weight[4] * weight[3] / (1 - weight[4])) * math.pow(E12_C1m[4], p) * math.pow(E12_C1m[3], q)))))

E12_F_SCoB_m6 = sum(
    ((((weight[5] * weight[6] / (1 - weight[5])) * math.pow(E12_C1m[5], p) * math.pow(E12_C1m[6], q)),
      ((weight[5] * weight[7] / (1 - weight[5])) * math.pow(E12_C1m[5], p) * math.pow(E12_C1m[7], q)),
      ((weight[5] * weight[0] / (1 - weight[5])) * math.pow(E12_C1m[5], p) * math.pow(E12_C1m[0], q)),
      ((weight[5] * weight[1] / (1 - weight[5])) * math.pow(E12_C1m[5], p) * math.pow(E12_C1m[1], q)),
      ((weight[5] * weight[2] / (1 - weight[5])) * math.pow(E12_C1m[5], p) * math.pow(E12_C1m[2], q)),
      ((weight[5] * weight[3] / (1 - weight[5])) * math.pow(E12_C1m[5], p) * math.pow(E12_C1m[3], q)),
      ((weight[5] * weight[4] / (1 - weight[5])) * math.pow(E12_C1m[5], p) * math.pow(E12_C1m[4], q)))))

E12_F_SCoB_m7 = sum(
    ((((weight[6] * weight[7] / (1 - weight[6])) * math.pow(E12_C1m[6], p) * math.pow(E12_C1m[7], q)),
      ((weight[6] * weight[0] / (1 - weight[6])) * math.pow(E12_C1m[6], p) * math.pow(E12_C1m[0], q)),
      ((weight[6] * weight[1] / (1 - weight[6])) * math.pow(E12_C1m[6], p) * math.pow(E12_C1m[1], q)),
      ((weight[6] * weight[2] / (1 - weight[6])) * math.pow(E12_C1m[6], p) * math.pow(E12_C1m[2], q)),
      ((weight[6] * weight[3] / (1 - weight[6])) * math.pow(E12_C1m[6], p) * math.pow(E12_C1m[3], q)),
      ((weight[6] * weight[4] / (1 - weight[6])) * math.pow(E12_C1m[6], p) * math.pow(E12_C1m[4], q)),
      ((weight[6] * weight[5] / (1 - weight[6])) * math.pow(E12_C1m[6], p) * math.pow(E12_C1m[5], q)))))

E12_F_SCoB_m8 = sum(
    ((((weight[7] * weight[0] / (1 - weight[7])) * math.pow(E12_C1m[7], p) * math.pow(E12_C1m[0], q)),
      ((weight[7] * weight[1] / (1 - weight[7])) * math.pow(E12_C1m[7], p) * math.pow(E12_C1m[1], q)),
      ((weight[7] * weight[2] / (1 - weight[7])) * math.pow(E12_C1m[7], p) * math.pow(E12_C1m[2], q)),
      ((weight[7] * weight[3] / (1 - weight[7])) * math.pow(E12_C1m[7], p) * math.pow(E12_C1m[3], q)),
      ((weight[7] * weight[4] / (1 - weight[7])) * math.pow(E12_C1m[7], p) * math.pow(E12_C1m[4], q)),
      ((weight[7] * weight[5] / (1 - weight[7])) * math.pow(E12_C1m[7], p) * math.pow(E12_C1m[5], q)),
      ((weight[7] * weight[6] / (1 - weight[7])) * math.pow(E12_C1m[7], p) * math.pow(E12_C1m[6], q)))))
E12_F_SCoB_m = pow(sum(
    (E12_F_SCoB_m1, E12_F_SCoB_m2, E12_F_SCoB_m3, E12_F_SCoB_m4, E12_F_SCoB_m5, E12_F_SCoB_m6, E12_F_SCoB_m7,
     E12_F_SCoB_m8)),
    a)
# </editor-fold>
# <editor-fold desc="E12_F_SCoB_u">
E12_F_SCoB_u1 = sum(
    ((((weight[0] * weight[1] / (1 - weight[0])) * math.pow(E12_C1u[0], p) * math.pow(E12_C1u[1], q)),
      ((weight[0] * weight[2] / (1 - weight[0])) * math.pow(E12_C1u[0], p) * math.pow(E12_C1u[2], q)),
      ((weight[0] * weight[3] / (1 - weight[0])) * math.pow(E12_C1u[0], p) * math.pow(E12_C1u[3], q)),
      ((weight[0] * weight[4] / (1 - weight[0])) * math.pow(E12_C1u[0], p) * math.pow(E12_C1u[4], q)),
      ((weight[0] * weight[5] / (1 - weight[0])) * math.pow(E12_C1u[0], p) * math.pow(E12_C1u[5], q)),
      ((weight[0] * weight[6] / (1 - weight[0])) * math.pow(E12_C1u[0], p) * math.pow(E12_C1u[6], q)),
      ((weight[0] * weight[7] / (1 - weight[0])) * math.pow(E12_C1u[0], p) * math.pow(E12_C1u[2], q)))))

E12_F_SCoB_u2 = sum(
    ((((weight[1] * weight[2] / (1 - weight[1])) * math.pow(E12_C1u[1], p) * math.pow(E12_C1u[2], q)),
      ((weight[1] * weight[3] / (1 - weight[1])) * math.pow(E12_C1u[1], p) * math.pow(E12_C1u[3], q)),
      ((weight[1] * weight[4] / (1 - weight[1])) * math.pow(E12_C1u[1], p) * math.pow(E12_C1u[4], q)),
      ((weight[1] * weight[5] / (1 - weight[1])) * math.pow(E12_C1u[1], p) * math.pow(E12_C1u[5], q)),
      ((weight[1] * weight[6] / (1 - weight[1])) * math.pow(E12_C1u[1], p) * math.pow(E12_C1u[6], q)),
      ((weight[1] * weight[7] / (1 - weight[1])) * math.pow(E12_C1u[1], p) * math.pow(E12_C1u[7], q)),
      ((weight[1] * weight[0] / (1 - weight[1])) * math.pow(E12_C1u[1], p) * math.pow(E12_C1u[0], q)))))

E12_F_SCoB_u3 = sum(
    ((((weight[2] * weight[3] / (1 - weight[2])) * math.pow(E12_C1u[2], p) * math.pow(E12_C1u[3], q)),
      ((weight[2] * weight[4] / (1 - weight[2])) * math.pow(E12_C1u[2], p) * math.pow(E12_C1u[4], q)),
      ((weight[2] * weight[5] / (1 - weight[2])) * math.pow(E12_C1u[2], p) * math.pow(E12_C1u[5], q)),
      ((weight[2] * weight[6] / (1 - weight[2])) * math.pow(E12_C1u[2], p) * math.pow(E12_C1u[6], q)),
      ((weight[2] * weight[7] / (1 - weight[2])) * math.pow(E12_C1u[2], p) * math.pow(E12_C1u[7], q)),
      ((weight[2] * weight[0] / (1 - weight[2])) * math.pow(E12_C1u[2], p) * math.pow(E12_C1u[0], q)),
      ((weight[2] * weight[1] / (1 - weight[2])) * math.pow(E12_C1u[2], p) * math.pow(E12_C1u[1], q)))))

E12_F_SCoB_u4 = sum(
    ((((weight[3] * weight[4] / (1 - weight[3])) * math.pow(E12_C1u[3], p) * math.pow(E12_C1u[4], q)),
      ((weight[3] * weight[5] / (1 - weight[3])) * math.pow(E12_C1u[3], p) * math.pow(E12_C1u[5], q)),
      ((weight[3] * weight[6] / (1 - weight[3])) * math.pow(E12_C1u[3], p) * math.pow(E12_C1u[6], q)),
      ((weight[3] * weight[7] / (1 - weight[3])) * math.pow(E12_C1u[3], p) * math.pow(E12_C1u[7], q)),
      ((weight[3] * weight[0] / (1 - weight[3])) * math.pow(E12_C1u[3], p) * math.pow(E12_C1u[0], q)),
      ((weight[3] * weight[1] / (1 - weight[3])) * math.pow(E12_C1u[3], p) * math.pow(E12_C1u[1], q)),
      ((weight[3] * weight[2] / (1 - weight[3])) * math.pow(E12_C1u[3], p) * math.pow(E12_C1u[2], q)))))

E12_F_SCoB_u5 = sum(
    ((((weight[4] * weight[5] / (1 - weight[4])) * math.pow(E12_C1u[4], p) * math.pow(E12_C1u[5], q)),
      ((weight[4] * weight[6] / (1 - weight[4])) * math.pow(E12_C1u[4], p) * math.pow(E12_C1u[6], q)),
      ((weight[4] * weight[7] / (1 - weight[4])) * math.pow(E12_C1u[4], p) * math.pow(E12_C1u[7], q)),
      ((weight[4] * weight[0] / (1 - weight[4])) * math.pow(E12_C1u[4], p) * math.pow(E12_C1u[0], q)),
      ((weight[4] * weight[1] / (1 - weight[4])) * math.pow(E12_C1u[4], p) * math.pow(E12_C1u[1], q)),
      ((weight[4] * weight[2] / (1 - weight[4])) * math.pow(E12_C1u[4], p) * math.pow(E12_C1u[2], q)),
      ((weight[4] * weight[3] / (1 - weight[4])) * math.pow(E12_C1u[4], p) * math.pow(E12_C1u[3], q)))))

E12_F_SCoB_u6 = sum(
    ((((weight[5] * weight[6] / (1 - weight[5])) * math.pow(E12_C1u[5], p) * math.pow(E12_C1u[6], q)),
      ((weight[5] * weight[7] / (1 - weight[5])) * math.pow(E12_C1u[5], p) * math.pow(E12_C1u[7], q)),
      ((weight[5] * weight[0] / (1 - weight[5])) * math.pow(E12_C1u[5], p) * math.pow(E12_C1u[0], q)),
      ((weight[5] * weight[1] / (1 - weight[5])) * math.pow(E12_C1u[5], p) * math.pow(E12_C1u[1], q)),
      ((weight[5] * weight[2] / (1 - weight[5])) * math.pow(E12_C1u[5], p) * math.pow(E12_C1u[2], q)),
      ((weight[5] * weight[3] / (1 - weight[5])) * math.pow(E12_C1u[5], p) * math.pow(E12_C1u[3], q)),
      ((weight[5] * weight[4] / (1 - weight[5])) * math.pow(E12_C1u[5], p) * math.pow(E12_C1u[4], q)))))

E12_F_SCoB_u7 = sum(
    ((((weight[6] * weight[7] / (1 - weight[6])) * math.pow(E12_C1u[6], p) * math.pow(E12_C1u[7], q)),
      ((weight[6] * weight[0] / (1 - weight[6])) * math.pow(E12_C1u[6], p) * math.pow(E12_C1u[0], q)),
      ((weight[6] * weight[1] / (1 - weight[6])) * math.pow(E12_C1u[6], p) * math.pow(E12_C1u[1], q)),
      ((weight[6] * weight[2] / (1 - weight[6])) * math.pow(E12_C1u[6], p) * math.pow(E12_C1u[2], q)),
      ((weight[6] * weight[3] / (1 - weight[6])) * math.pow(E12_C1u[6], p) * math.pow(E12_C1u[3], q)),
      ((weight[6] * weight[4] / (1 - weight[6])) * math.pow(E12_C1u[6], p) * math.pow(E12_C1u[4], q)),
      ((weight[6] * weight[5] / (1 - weight[6])) * math.pow(E12_C1u[6], p) * math.pow(E12_C1u[5], q)))))

E12_F_SCoB_u8 = sum(
    ((((weight[7] * weight[0] / (1 - weight[7])) * math.pow(E12_C1u[7], p) * math.pow(E12_C1u[0], q)),
      ((weight[7] * weight[1] / (1 - weight[7])) * math.pow(E12_C1u[7], p) * math.pow(E12_C1u[1], q)),
      ((weight[7] * weight[2] / (1 - weight[7])) * math.pow(E12_C1u[7], p) * math.pow(E12_C1u[2], q)),
      ((weight[7] * weight[3] / (1 - weight[7])) * math.pow(E12_C1u[7], p) * math.pow(E12_C1u[3], q)),
      ((weight[7] * weight[4] / (1 - weight[7])) * math.pow(E12_C1u[7], p) * math.pow(E12_C1u[4], q)),
      ((weight[7] * weight[5] / (1 - weight[7])) * math.pow(E12_C1u[7], p) * math.pow(E12_C1u[5], q)),
      ((weight[7] * weight[6] / (1 - weight[7])) * math.pow(E12_C1u[7], p) * math.pow(E12_C1u[6], q)))))
E12_F_SCoB_u = pow(sum(
    (E12_F_SCoB_u1, E12_F_SCoB_u2, E12_F_SCoB_u3, E12_F_SCoB_u4, E12_F_SCoB_u5, E12_F_SCoB_u6, E12_F_SCoB_u7,
     E12_F_SCoB_u8)),
    a)
# </editor-fold>
# print(E12_F_SCoB_l)
# print(E12_F_SCoB_m)
# print(E12_F_SCoB_u)
E12_SCoB = (E12_F_SCoB_l + 4 * E12_F_SCoB_m + E12_F_SCoB_u) / 6

# <editor-fold desc="E12_F_PCoB_l">
E12_F_PCoB_l1 = numpy.prod((math.pow((p * E12_C1l[0] + q * E12_C1l[1]), (weight[0] * weight[1] / (1 - weight[0]))),
                            math.pow((p * E12_C1l[0] + q * E12_C1l[2]), (weight[0] * weight[2] / (1 - weight[0]))),
                            math.pow((p * E12_C1l[0] + q * E12_C1l[3]), (weight[0] * weight[3] / (1 - weight[0]))),
                            math.pow((p * E12_C1l[0] + q * E12_C1l[4]), (weight[0] * weight[4] / (1 - weight[0]))),
                            math.pow((p * E12_C1l[0] + q * E12_C1l[5]), (weight[0] * weight[5] / (1 - weight[0]))),
                            math.pow((p * E12_C1l[0] + q * E12_C1l[6]), (weight[0] * weight[6] / (1 - weight[0]))),
                            math.pow((p * E12_C1l[0] + q * E12_C1l[7]), (weight[0] * weight[7] / (1 - weight[0])))))

E12_F_PCoB_l2 = numpy.prod((math.pow((p * E12_C1l[1] + q * E12_C1l[2]), (weight[1] * weight[2] / (1 - weight[1]))),
                            math.pow((p * E12_C1l[1] + q * E12_C1l[3]), (weight[1] * weight[3] / (1 - weight[1]))),
                            math.pow((p * E12_C1l[1] + q * E12_C1l[4]), (weight[1] * weight[4] / (1 - weight[1]))),
                            math.pow((p * E12_C1l[1] + q * E12_C1l[5]), (weight[1] * weight[5] / (1 - weight[1]))),
                            math.pow((p * E12_C1l[1] + q * E12_C1l[6]), (weight[1] * weight[6] / (1 - weight[1]))),
                            math.pow((p * E12_C1l[1] + q * E12_C1l[7]), (weight[1] * weight[7] / (1 - weight[1]))),
                            math.pow((p * E12_C1l[1] + q * E12_C1l[0]), (weight[1] * weight[0] / (1 - weight[1])))))

E12_F_PCoB_l3 = numpy.prod((math.pow((p * E12_C1l[2] + q * E12_C1l[3]), (weight[2] * weight[3] / (1 - weight[2]))),
                            math.pow((p * E12_C1l[2] + q * E12_C1l[4]), (weight[2] * weight[4] / (1 - weight[2]))),
                            math.pow((p * E12_C1l[2] + q * E12_C1l[5]), (weight[2] * weight[5] / (1 - weight[2]))),
                            math.pow((p * E12_C1l[2] + q * E12_C1l[6]), (weight[2] * weight[6] / (1 - weight[2]))),
                            math.pow((p * E12_C1l[2] + q * E12_C1l[7]), (weight[2] * weight[7] / (1 - weight[2]))),
                            math.pow((p * E12_C1l[2] + q * E12_C1l[0]), (weight[2] * weight[0] / (1 - weight[2]))),
                            math.pow((p * E12_C1l[2] + q * E12_C1l[1]), (weight[2] * weight[1] / (1 - weight[2])))))

E12_F_PCoB_l4 = numpy.prod((math.pow((p * E12_C1l[3] + q * E12_C1l[4]), (weight[3] * weight[4] / (1 - weight[3]))),
                            math.pow((p * E12_C1l[3] + q * E12_C1l[5]), (weight[3] * weight[5] / (1 - weight[3]))),
                            math.pow((p * E12_C1l[3] + q * E12_C1l[6]), (weight[3] * weight[6] / (1 - weight[3]))),
                            math.pow((p * E12_C1l[3] + q * E12_C1l[7]), (weight[3] * weight[7] / (1 - weight[3]))),
                            math.pow((p * E12_C1l[3] + q * E12_C1l[0]), (weight[3] * weight[0] / (1 - weight[3]))),
                            math.pow((p * E12_C1l[3] + q * E12_C1l[1]), (weight[3] * weight[1] / (1 - weight[3]))),
                            math.pow((p * E12_C1l[3] + q * E12_C1l[2]), (weight[3] * weight[2] / (1 - weight[3])))))

E12_F_PCoB_l5 = numpy.prod((math.pow((p * E12_C1l[4] + q * E12_C1l[5]), (weight[4] * weight[5] / (1 - weight[4]))),
                            math.pow((p * E12_C1l[4] + q * E12_C1l[6]), (weight[4] * weight[6] / (1 - weight[4]))),
                            math.pow((p * E12_C1l[4] + q * E12_C1l[7]), (weight[4] * weight[7] / (1 - weight[4]))),
                            math.pow((p * E12_C1l[4] + q * E12_C1l[0]), (weight[4] * weight[0] / (1 - weight[4]))),
                            math.pow((p * E12_C1l[4] + q * E12_C1l[1]), (weight[4] * weight[1] / (1 - weight[4]))),
                            math.pow((p * E12_C1l[4] + q * E12_C1l[2]), (weight[4] * weight[2] / (1 - weight[4]))),
                            math.pow((p * E12_C1l[4] + q * E12_C1l[3]), (weight[4] * weight[3] / (1 - weight[4])))))

E12_F_PCoB_l6 = numpy.prod((math.pow((p * E12_C1l[5] + q * E12_C1l[6]), (weight[5] * weight[6] / (1 - weight[5]))),
                            math.pow((p * E12_C1l[5] + q * E12_C1l[7]), (weight[5] * weight[7] / (1 - weight[5]))),
                            math.pow((p * E12_C1l[5] + q * E12_C1l[0]), (weight[5] * weight[0] / (1 - weight[5]))),
                            math.pow((p * E12_C1l[5] + q * E12_C1l[1]), (weight[5] * weight[1] / (1 - weight[5]))),
                            math.pow((p * E12_C1l[5] + q * E12_C1l[2]), (weight[5] * weight[2] / (1 - weight[5]))),
                            math.pow((p * E12_C1l[5] + q * E12_C1l[3]), (weight[5] * weight[3] / (1 - weight[5]))),
                            math.pow((p * E12_C1l[5] + q * E12_C1l[4]), (weight[5] * weight[4] / (1 - weight[5])))))

E12_F_PCoB_l7 = numpy.prod((math.pow((p * E12_C1l[6] + q * E12_C1l[7]), (weight[6] * weight[7] / (1 - weight[6]))),
                            math.pow((p * E12_C1l[6] + q * E12_C1l[0]), (weight[6] * weight[0] / (1 - weight[6]))),
                            math.pow((p * E12_C1l[6] + q * E12_C1l[1]), (weight[6] * weight[1] / (1 - weight[6]))),
                            math.pow((p * E12_C1l[6] + q * E12_C1l[2]), (weight[6] * weight[2] / (1 - weight[6]))),
                            math.pow((p * E12_C1l[6] + q * E12_C1l[3]), (weight[6] * weight[3] / (1 - weight[6]))),
                            math.pow((p * E12_C1l[6] + q * E12_C1l[4]), (weight[6] * weight[4] / (1 - weight[6]))),
                            math.pow((p * E12_C1l[6] + q * E12_C1l[5]), (weight[6] * weight[5] / (1 - weight[6])))))

E12_F_PCoB_l8 = numpy.prod((math.pow((p * E12_C1l[7] + q * E12_C1l[0]), (weight[7] * weight[0] / (1 - weight[7]))),
                            math.pow((p * E12_C1l[7] + q * E12_C1l[1]), (weight[7] * weight[1] / (1 - weight[7]))),
                            math.pow((p * E12_C1l[7] + q * E12_C1l[2]), (weight[7] * weight[2] / (1 - weight[7]))),
                            math.pow((p * E12_C1l[7] + q * E12_C1l[3]), (weight[7] * weight[3] / (1 - weight[7]))),
                            math.pow((p * E12_C1l[7] + q * E12_C1l[4]), (weight[7] * weight[4] / (1 - weight[7]))),
                            math.pow((p * E12_C1l[7] + q * E12_C1l[5]), (weight[7] * weight[5] / (1 - weight[7]))),
                            math.pow((p * E12_C1l[7] + q * E12_C1l[6]), (weight[7] * weight[6] / (1 - weight[7])))))
E12_F_PCoB_l = a * numpy.prod(
    (E12_F_PCoB_l1, E12_F_PCoB_l2, E12_F_PCoB_l3, E12_F_PCoB_l4, E12_F_PCoB_l5, E12_F_PCoB_l6, E12_F_PCoB_l7,
     E12_F_PCoB_l8))
# </editor-fold>
# <editor-fold desc="E12_F_PCoB_m">
E12_F_PCoB_m1 = numpy.prod((math.pow((p * E12_C1m[0] + q * E12_C1m[1]), (weight[0] * weight[1] / (1 - weight[0]))),
                            math.pow((p * E12_C1m[0] + q * E12_C1m[2]), (weight[0] * weight[2] / (1 - weight[0]))),
                            math.pow((p * E12_C1m[0] + q * E12_C1m[3]), (weight[0] * weight[3] / (1 - weight[0]))),
                            math.pow((p * E12_C1m[0] + q * E12_C1m[4]), (weight[0] * weight[4] / (1 - weight[0]))),
                            math.pow((p * E12_C1m[0] + q * E12_C1m[5]), (weight[0] * weight[5] / (1 - weight[0]))),
                            math.pow((p * E12_C1m[0] + q * E12_C1m[6]), (weight[0] * weight[6] / (1 - weight[0]))),
                            math.pow((p * E12_C1m[0] + q * E12_C1m[7]), (weight[0] * weight[7] / (1 - weight[0])))))

E12_F_PCoB_m2 = numpy.prod((math.pow((p * E12_C1m[1] + q * E12_C1m[2]), (weight[1] * weight[2] / (1 - weight[1]))),
                            math.pow((p * E12_C1m[1] + q * E12_C1m[3]), (weight[1] * weight[3] / (1 - weight[1]))),
                            math.pow((p * E12_C1m[1] + q * E12_C1m[4]), (weight[1] * weight[4] / (1 - weight[1]))),
                            math.pow((p * E12_C1m[1] + q * E12_C1m[5]), (weight[1] * weight[5] / (1 - weight[1]))),
                            math.pow((p * E12_C1m[1] + q * E12_C1m[6]), (weight[1] * weight[6] / (1 - weight[1]))),
                            math.pow((p * E12_C1m[1] + q * E12_C1m[7]), (weight[1] * weight[7] / (1 - weight[1]))),
                            math.pow((p * E12_C1m[1] + q * E12_C1m[0]), (weight[1] * weight[0] / (1 - weight[1])))))

E12_F_PCoB_m3 = numpy.prod((math.pow((p * E12_C1m[2] + q * E12_C1m[3]), (weight[2] * weight[3] / (1 - weight[2]))),
                            math.pow((p * E12_C1m[2] + q * E12_C1m[4]), (weight[2] * weight[4] / (1 - weight[2]))),
                            math.pow((p * E12_C1m[2] + q * E12_C1m[5]), (weight[2] * weight[5] / (1 - weight[2]))),
                            math.pow((p * E12_C1m[2] + q * E12_C1m[6]), (weight[2] * weight[6] / (1 - weight[2]))),
                            math.pow((p * E12_C1m[2] + q * E12_C1m[7]), (weight[2] * weight[7] / (1 - weight[2]))),
                            math.pow((p * E12_C1m[2] + q * E12_C1m[0]), (weight[2] * weight[0] / (1 - weight[2]))),
                            math.pow((p * E12_C1m[2] + q * E12_C1m[1]), (weight[2] * weight[1] / (1 - weight[2])))))

E12_F_PCoB_m4 = numpy.prod((math.pow((p * E12_C1m[3] + q * E12_C1m[4]), (weight[3] * weight[4] / (1 - weight[3]))),
                            math.pow((p * E12_C1m[3] + q * E12_C1m[5]), (weight[3] * weight[5] / (1 - weight[3]))),
                            math.pow((p * E12_C1m[3] + q * E12_C1m[6]), (weight[3] * weight[6] / (1 - weight[3]))),
                            math.pow((p * E12_C1m[3] + q * E12_C1m[7]), (weight[3] * weight[7] / (1 - weight[3]))),
                            math.pow((p * E12_C1m[3] + q * E12_C1m[0]), (weight[3] * weight[0] / (1 - weight[3]))),
                            math.pow((p * E12_C1m[3] + q * E12_C1m[1]), (weight[3] * weight[1] / (1 - weight[3]))),
                            math.pow((p * E12_C1m[3] + q * E12_C1m[2]), (weight[3] * weight[2] / (1 - weight[3])))))

E12_F_PCoB_m5 = numpy.prod((math.pow((p * E12_C1m[4] + q * E12_C1m[5]), (weight[4] * weight[5] / (1 - weight[4]))),
                            math.pow((p * E12_C1m[4] + q * E12_C1m[6]), (weight[4] * weight[6] / (1 - weight[4]))),
                            math.pow((p * E12_C1m[4] + q * E12_C1m[7]), (weight[4] * weight[7] / (1 - weight[4]))),
                            math.pow((p * E12_C1m[4] + q * E12_C1m[0]), (weight[4] * weight[0] / (1 - weight[4]))),
                            math.pow((p * E12_C1m[4] + q * E12_C1m[1]), (weight[4] * weight[1] / (1 - weight[4]))),
                            math.pow((p * E12_C1m[4] + q * E12_C1m[2]), (weight[4] * weight[2] / (1 - weight[4]))),
                            math.pow((p * E12_C1m[4] + q * E12_C1m[3]), (weight[4] * weight[3] / (1 - weight[4])))))

E12_F_PCoB_m6 = numpy.prod((math.pow((p * E12_C1m[5] + q * E12_C1m[6]), (weight[5] * weight[6] / (1 - weight[5]))),
                            math.pow((p * E12_C1m[5] + q * E12_C1m[7]), (weight[5] * weight[7] / (1 - weight[5]))),
                            math.pow((p * E12_C1m[5] + q * E12_C1m[0]), (weight[5] * weight[0] / (1 - weight[5]))),
                            math.pow((p * E12_C1m[5] + q * E12_C1m[1]), (weight[5] * weight[1] / (1 - weight[5]))),
                            math.pow((p * E12_C1m[5] + q * E12_C1m[2]), (weight[5] * weight[2] / (1 - weight[5]))),
                            math.pow((p * E12_C1m[5] + q * E12_C1m[3]), (weight[5] * weight[3] / (1 - weight[5]))),
                            math.pow((p * E12_C1m[5] + q * E12_C1m[4]), (weight[5] * weight[4] / (1 - weight[5])))))

E12_F_PCoB_m7 = numpy.prod((math.pow((p * E12_C1m[6] + q * E12_C1m[7]), (weight[6] * weight[7] / (1 - weight[6]))),
                            math.pow((p * E12_C1m[6] + q * E12_C1m[0]), (weight[6] * weight[0] / (1 - weight[6]))),
                            math.pow((p * E12_C1m[6] + q * E12_C1m[1]), (weight[6] * weight[1] / (1 - weight[6]))),
                            math.pow((p * E12_C1m[6] + q * E12_C1m[2]), (weight[6] * weight[2] / (1 - weight[6]))),
                            math.pow((p * E12_C1m[6] + q * E12_C1m[3]), (weight[6] * weight[3] / (1 - weight[6]))),
                            math.pow((p * E12_C1m[6] + q * E12_C1m[4]), (weight[6] * weight[4] / (1 - weight[6]))),
                            math.pow((p * E12_C1m[6] + q * E12_C1m[5]), (weight[6] * weight[5] / (1 - weight[6])))))

E12_F_PCoB_m8 = numpy.prod((math.pow((p * E12_C1m[7] + q * E12_C1m[0]), (weight[7] * weight[0] / (1 - weight[7]))),
                            math.pow((p * E12_C1m[7] + q * E12_C1m[1]), (weight[7] * weight[1] / (1 - weight[7]))),
                            math.pow((p * E12_C1m[7] + q * E12_C1m[2]), (weight[7] * weight[2] / (1 - weight[7]))),
                            math.pow((p * E12_C1m[7] + q * E12_C1m[3]), (weight[7] * weight[3] / (1 - weight[7]))),
                            math.pow((p * E12_C1m[7] + q * E12_C1m[4]), (weight[7] * weight[4] / (1 - weight[7]))),
                            math.pow((p * E12_C1m[7] + q * E12_C1m[5]), (weight[7] * weight[5] / (1 - weight[7]))),
                            math.pow((p * E12_C1m[7] + q * E12_C1m[6]), (weight[7] * weight[6] / (1 - weight[7])))))
E12_F_PCoB_m = a * numpy.prod(
    (E12_F_PCoB_m1, E12_F_PCoB_m2, E12_F_PCoB_m3, E12_F_PCoB_m4, E12_F_PCoB_m5, E12_F_PCoB_m6, E12_F_PCoB_m7,
     E12_F_PCoB_m8))
# </editor-fold>
# <editor-fold desc="E12_F_PCoB_u">
E12_F_PCoB_u1 = numpy.prod((math.pow((p * E12_C1u[0] + q * E12_C1u[1]), (weight[0] * weight[1] / (1 - weight[0]))),
                            math.pow((p * E12_C1u[0] + q * E12_C1u[2]), (weight[0] * weight[2] / (1 - weight[0]))),
                            math.pow((p * E12_C1u[0] + q * E12_C1u[3]), (weight[0] * weight[3] / (1 - weight[0]))),
                            math.pow((p * E12_C1u[0] + q * E12_C1u[4]), (weight[0] * weight[4] / (1 - weight[0]))),
                            math.pow((p * E12_C1u[0] + q * E12_C1u[5]), (weight[0] * weight[5] / (1 - weight[0]))),
                            math.pow((p * E12_C1u[0] + q * E12_C1u[6]), (weight[0] * weight[6] / (1 - weight[0]))),
                            math.pow((p * E12_C1u[0] + q * E12_C1u[7]), (weight[0] * weight[7] / (1 - weight[0])))))

E12_F_PCoB_u2 = numpy.prod((math.pow((p * E12_C1u[1] + q * E12_C1u[2]), (weight[1] * weight[2] / (1 - weight[1]))),
                            math.pow((p * E12_C1u[1] + q * E12_C1u[3]), (weight[1] * weight[3] / (1 - weight[1]))),
                            math.pow((p * E12_C1u[1] + q * E12_C1u[4]), (weight[1] * weight[4] / (1 - weight[1]))),
                            math.pow((p * E12_C1u[1] + q * E12_C1u[5]), (weight[1] * weight[5] / (1 - weight[1]))),
                            math.pow((p * E12_C1u[1] + q * E12_C1u[6]), (weight[1] * weight[6] / (1 - weight[1]))),
                            math.pow((p * E12_C1u[1] + q * E12_C1u[7]), (weight[1] * weight[7] / (1 - weight[1]))),
                            math.pow((p * E12_C1u[1] + q * E12_C1u[0]), (weight[1] * weight[0] / (1 - weight[1])))))

E12_F_PCoB_u3 = numpy.prod((math.pow((p * E12_C1u[2] + q * E12_C1u[3]), (weight[2] * weight[3] / (1 - weight[2]))),
                            math.pow((p * E12_C1u[2] + q * E12_C1u[4]), (weight[2] * weight[4] / (1 - weight[2]))),
                            math.pow((p * E12_C1u[2] + q * E12_C1u[5]), (weight[2] * weight[5] / (1 - weight[2]))),
                            math.pow((p * E12_C1u[2] + q * E12_C1u[6]), (weight[2] * weight[6] / (1 - weight[2]))),
                            math.pow((p * E12_C1u[2] + q * E12_C1u[7]), (weight[2] * weight[7] / (1 - weight[2]))),
                            math.pow((p * E12_C1u[2] + q * E12_C1u[0]), (weight[2] * weight[0] / (1 - weight[2]))),
                            math.pow((p * E12_C1u[2] + q * E12_C1u[1]), (weight[2] * weight[1] / (1 - weight[2])))))

E12_F_PCoB_u4 = numpy.prod((math.pow((p * E12_C1u[3] + q * E12_C1u[4]), (weight[3] * weight[4] / (1 - weight[3]))),
                            math.pow((p * E12_C1u[3] + q * E12_C1u[5]), (weight[3] * weight[5] / (1 - weight[3]))),
                            math.pow((p * E12_C1u[3] + q * E12_C1u[6]), (weight[3] * weight[6] / (1 - weight[3]))),
                            math.pow((p * E12_C1u[3] + q * E12_C1u[7]), (weight[3] * weight[7] / (1 - weight[3]))),
                            math.pow((p * E12_C1u[3] + q * E12_C1u[0]), (weight[3] * weight[0] / (1 - weight[3]))),
                            math.pow((p * E12_C1u[3] + q * E12_C1u[1]), (weight[3] * weight[1] / (1 - weight[3]))),
                            math.pow((p * E12_C1u[3] + q * E12_C1u[2]), (weight[3] * weight[2] / (1 - weight[3])))))

E12_F_PCoB_u5 = numpy.prod((math.pow((p * E12_C1u[4] + q * E12_C1u[5]), (weight[4] * weight[5] / (1 - weight[4]))),
                            math.pow((p * E12_C1u[4] + q * E12_C1u[6]), (weight[4] * weight[6] / (1 - weight[4]))),
                            math.pow((p * E12_C1u[4] + q * E12_C1u[7]), (weight[4] * weight[7] / (1 - weight[4]))),
                            math.pow((p * E12_C1u[4] + q * E12_C1u[0]), (weight[4] * weight[0] / (1 - weight[4]))),
                            math.pow((p * E12_C1u[4] + q * E12_C1u[1]), (weight[4] * weight[1] / (1 - weight[4]))),
                            math.pow((p * E12_C1u[4] + q * E12_C1u[2]), (weight[4] * weight[2] / (1 - weight[4]))),
                            math.pow((p * E12_C1u[4] + q * E12_C1u[3]), (weight[4] * weight[3] / (1 - weight[4])))))

E12_F_PCoB_u6 = numpy.prod((math.pow((p * E12_C1u[5] + q * E12_C1u[6]), (weight[5] * weight[6] / (1 - weight[5]))),
                            math.pow((p * E12_C1u[5] + q * E12_C1u[7]), (weight[5] * weight[7] / (1 - weight[5]))),
                            math.pow((p * E12_C1u[5] + q * E12_C1u[0]), (weight[5] * weight[0] / (1 - weight[5]))),
                            math.pow((p * E12_C1u[5] + q * E12_C1u[1]), (weight[5] * weight[1] / (1 - weight[5]))),
                            math.pow((p * E12_C1u[5] + q * E12_C1u[2]), (weight[5] * weight[2] / (1 - weight[5]))),
                            math.pow((p * E12_C1u[5] + q * E12_C1u[3]), (weight[5] * weight[3] / (1 - weight[5]))),
                            math.pow((p * E12_C1u[5] + q * E12_C1u[4]), (weight[5] * weight[4] / (1 - weight[5])))))

E12_F_PCoB_u7 = numpy.prod((math.pow((p * E12_C1u[6] + q * E12_C1u[7]), (weight[6] * weight[7] / (1 - weight[6]))),
                            math.pow((p * E12_C1u[6] + q * E12_C1u[0]), (weight[6] * weight[0] / (1 - weight[6]))),
                            math.pow((p * E12_C1u[6] + q * E12_C1u[1]), (weight[6] * weight[1] / (1 - weight[6]))),
                            math.pow((p * E12_C1u[6] + q * E12_C1u[2]), (weight[6] * weight[2] / (1 - weight[6]))),
                            math.pow((p * E12_C1u[6] + q * E12_C1u[3]), (weight[6] * weight[3] / (1 - weight[6]))),
                            math.pow((p * E12_C1u[6] + q * E12_C1u[4]), (weight[6] * weight[4] / (1 - weight[6]))),
                            math.pow((p * E12_C1u[6] + q * E12_C1u[5]), (weight[6] * weight[5] / (1 - weight[6])))))

E12_F_PCoB_u8 = numpy.prod((math.pow((p * E12_C1u[7] + q * E12_C1u[0]), (weight[7] * weight[0] / (1 - weight[7]))),
                            math.pow((p * E12_C1u[7] + q * E12_C1u[1]), (weight[7] * weight[1] / (1 - weight[7]))),
                            math.pow((p * E12_C1u[7] + q * E12_C1u[2]), (weight[7] * weight[2] / (1 - weight[7]))),
                            math.pow((p * E12_C1u[7] + q * E12_C1u[3]), (weight[7] * weight[3] / (1 - weight[7]))),
                            math.pow((p * E12_C1u[7] + q * E12_C1u[4]), (weight[7] * weight[4] / (1 - weight[7]))),
                            math.pow((p * E12_C1u[7] + q * E12_C1u[5]), (weight[7] * weight[5] / (1 - weight[7]))),
                            math.pow((p * E12_C1u[7] + q * E12_C1u[6]), (weight[7] * weight[6] / (1 - weight[7])))))
E12_F_PCoB_u = a * numpy.prod(
    (E12_F_PCoB_u1, E12_F_PCoB_u2, E12_F_PCoB_u3, E12_F_PCoB_u4, E12_F_PCoB_u5, E12_F_PCoB_u6, E12_F_PCoB_u7,
     E12_F_PCoB_u8))
# </editor-fold>
# print(E12_F_PCoB_l)
# print(E12_F_PCoB_m)
# print(E12_F_PCoB_u)
E12_PCoB = (E12_F_PCoB_l + 4 * E12_F_PCoB_m + E12_F_PCoB_u) / 6

b = sum(((E1_PCoB + E1_SCoB),(E2_PCoB + E2_SCoB),(E3_PCoB + E3_SCoB),(E4_PCoB + E4_SCoB),(E5_PCoB + E5_SCoB),(E6_PCoB + E6_SCoB),(E7_PCoB + E7_SCoB),(E8_PCoB + E8_SCoB),(E9_PCoB + E9_SCoB),(E10_PCoB + E10_SCoB),(E11_PCoB + E11_SCoB),(E12_PCoB + E12_SCoB)))
c = min(E1_SCoB, E2_SCoB, E3_SCoB, E4_SCoB, E5_SCoB, E6_SCoB, E7_SCoB, E8_SCoB, E9_SCoB, E10_SCoB, E11_SCoB, E12_SCoB)
d = min(E1_PCoB, E2_PCoB, E3_PCoB, E4_PCoB, E5_PCoB, E6_PCoB, E7_PCoB, E8_PCoB, E9_PCoB, E10_PCoB, E11_PCoB, E12_PCoB)
e = max(E1_SCoB, E2_SCoB, E3_SCoB, E4_SCoB, E5_SCoB, E6_SCoB, E7_SCoB, E8_SCoB, E9_SCoB, E10_SCoB, E11_SCoB, E12_SCoB)
f = max(E1_PCoB, E2_PCoB, E3_PCoB, E4_PCoB, E5_PCoB, E6_PCoB, E7_PCoB, E8_PCoB, E9_PCoB, E10_PCoB, E11_PCoB, E12_PCoB)

E1_kia = (E1_PCoB + E1_SCoB) / b
E2_kia = (E2_PCoB + E2_SCoB) / b
E3_kia = (E3_PCoB + E3_SCoB) / b
E4_kia = (E4_PCoB + E4_SCoB) / b
E5_kia = (E5_PCoB + E5_SCoB) / b
E6_kia = (E6_PCoB + E6_SCoB) / b
E7_kia = (E7_PCoB + E7_SCoB) / b
E8_kia = (E8_PCoB + E8_SCoB) / b
E9_kia = (E9_PCoB + E9_SCoB) / b
E10_kia = (E10_PCoB + E10_SCoB) / b
E11_kia = (E11_PCoB + E11_SCoB) / b
E12_kia = (E12_PCoB + E12_SCoB) / b

E1_kib = E1_SCoB / c + E1_PCoB / d
E2_kib = E2_SCoB / c + E2_PCoB / d
E3_kib = E3_SCoB / c + E3_PCoB / d
E4_kib = E4_SCoB / c + E4_PCoB / d
E5_kib = E5_SCoB / c + E5_PCoB / d
E6_kib = E6_SCoB / c + E6_PCoB / d
E7_kib = E7_SCoB / c + E7_PCoB / d
E8_kib = E8_SCoB / c + E8_PCoB / d
E9_kib = E9_SCoB / c + E9_PCoB / d
E10_kib = E10_SCoB / c + E10_PCoB / d
E11_kib = E11_SCoB / c + E11_PCoB / d
E12_kib = E12_SCoB / c + E12_PCoB / d

E1_kic = (r * E1_SCoB + (1 - r) * E1_PCoB) / (r * e + (1 - r) * f)
E2_kic = (r * E2_SCoB + (1 - r) * E2_PCoB) / (r * e + (1 - r) * f)
E3_kic = (r * E3_SCoB + (1 - r) * E3_PCoB) / (r * e + (1 - r) * f)
E4_kic = (r * E4_SCoB + (1 - r) * E4_PCoB) / (r * e + (1 - r) * f)
E5_kic = (r * E5_SCoB + (1 - r) * E5_PCoB) / (r * e + (1 - r) * f)
E6_kic = (r * E6_SCoB + (1 - r) * E6_PCoB) / (r * e + (1 - r) * f)
E7_kic = (r * E7_SCoB + (1 - r) * E7_PCoB) / (r * e + (1 - r) * f)
E8_kic = (r * E8_SCoB + (1 - r) * E8_PCoB) / (r * e + (1 - r) * f)
E9_kic = (r * E9_SCoB + (1 - r) * E9_PCoB) / (r * e + (1 - r) * f)
E10_kic = (r * E10_SCoB + (1 - r) * E10_PCoB) / (r * e + (1 - r) * f)
E11_kic = (r * E11_SCoB + (1 - r) * E11_PCoB) / (r * e + (1 - r) * f)
E12_kic = (r * E12_SCoB + (1 - r) * E12_PCoB) / (r * e + (1 - r) * f)

E1_ki = math.pow(E1_kia * E1_kib * E1_kic, 1 / 3) + (E1_kia + E1_kib + E1_kic) / 3
E2_ki = math.pow(E2_kia * E2_kib * E2_kic, 1 / 3) + (E2_kia + E2_kib + E2_kic) / 3
E3_ki = math.pow(E3_kia * E3_kib * E3_kic, 1 / 3) + (E3_kia + E3_kib + E3_kic) / 3
E4_ki = math.pow(E4_kia * E4_kib * E4_kic, 1 / 3) + (E4_kia + E4_kib + E4_kic) / 3
E5_ki = math.pow(E5_kia * E5_kib * E5_kic, 1 / 3) + (E5_kia + E5_kib + E5_kic) / 3
E6_ki = math.pow(E6_kia * E6_kib * E6_kic, 1 / 3) + (E6_kia + E6_kib + E6_kic) / 3
E7_ki = math.pow(E7_kia * E7_kib * E7_kic, 1 / 3) + (E7_kia + E7_kib + E7_kic) / 3
E8_ki = math.pow(E8_kia * E8_kib * E8_kic, 1 / 3) + (E8_kia + E8_kib + E8_kic) / 3
E9_ki = math.pow(E9_kia * E9_kib * E9_kic, 1 / 3) + (E9_kia + E9_kib + E9_kic) / 3
E10_ki = math.pow(E10_kia * E10_kib * E10_kic, 1 / 3) + (E10_kia + E10_kib + E10_kic) / 3
E11_ki = math.pow(E11_kia * E11_kib * E11_kic, 1 / 3) + (E11_kia + E11_kib + E11_kic) / 3
E12_ki = math.pow(E11_kia * E11_kib * E11_kic, 1 / 3) + (E11_kia + E11_kib + E11_kic) / 3

#print('方案1：{0},方案2:{1},方案3:{2},方案4:{3},方案5:{4},方案6:{5},方案7:{6},方案8:{7},方案9:{8},方案10:{9},方案11:{10},方案12:{11}'.format(E1_ki,E2_ki,E3_ki,E4_ki,E5_ki,E6_ki,E7_ki,E8_ki,E9_ki,E10_ki,E11_ki,E12_ki))
paiming = {'方案1': E1_ki, '方案2': E2_ki, '方案3': E3_ki,'方案4': E4_ki, '方案5': E5_ki, '方案6': E6_ki,'方案7': E7_ki, '方案8': E8_ki, '方案9': E9_ki,'方案10': E10_ki, '方案11': E11_ki, '方案12': E12_ki}
paiming_order = sorted(paiming.items(), key=lambda x: x[1], reverse=True)
print(paiming_order)